MAKEDEVICE(9F) Kernel Functions for Drivers MAKEDEVICE(9F)
makedevice - make device number from major and minor numbers
#include <sys/ddi.h> dev_t makedevice
, minor_t minnum
Architecture independent level 1 (DDI/DKI).
Major device number. minnum
Minor device number.
function 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
The device number, containing both the major number and the minor number,
is returned. No validation of the major or minor numbers is performed.
function can be called from user, interrupt, or kernel
SEE ALSO getmajor(9F)
January 16, 2006 MAKEDEVICE(9F)