Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversmakedevice(9F)


NAME

 makedevice - make device number from major and minor numbers

SYNOPSIS

 
#include <sys/types.h>
#include <sys/mkdev.h>
#include <sys/ddi.h>
dev_t makedevice(major_t majnum, minor_t minnum);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
majnum
Major device number.
minnum
Minor device number.

DESCRIPTION

 

makedevice() creates a device number from a major and minor device number. makedevice() should be used to create device numbers so the driver will port easily to releases that treat device numbers differently.

RETURN VALUES

 

The device number, containing both the major number and the minor number, is returned. No validation of the major or minor numbers is performed.

CONTEXT

 

makedevice() can be called from user or interrupt context.

SEE ALSO

 

getmajor(9F), getminor(9F)


SunOS 5.9Go To TopLast Changed 11 Apr 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.