#include <sys/types.h> #include <sys/mkdev.h> #include <sys/ddi.h>
Architecture independent level 1 (DDI/DKI).
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.
The device number, containing both the major number and the minor number, is returned. No validation of the major or minor numbers is performed.
makedevice() can be called from user or interrupt context.
getmajor(9F), getminor(9F)