MAKEDEVICE(9F)MAKEDEVICE(9F)NAMEmakedevice - make device number from major and minor numbers
dev_t makedevice(major_t majnum, minor_t minnum);
Architecture independent level 1 (DDI/DKI).
Major device number.
Minor device number.
The makedevice() function creates a device number from a major and
minor device number. makedevice() should be used to create device num‐
bers so the driver will port easily to releases that treat device num‐
The device number, containing both the major number and the minor num‐
ber, is returned. No validation of the major or minor numbers is per‐
The makedevice() function can be called from user, interrupt, or kernel
SEE ALSOgetmajor(9F), getminor(9F)
Jan 16, 2006 MAKEDEVICE(9F)