#include <sys/types.h> #include <sys/mkdev.h> #include <sys/ddi.h>
Architecture independent level 1 (DDI/DKI).
getminor() extracts the minor number from a device number.
The minor number.
getminor() can be called from user or interrupt context.
See the getmajor(9F) manual page for an example of how to use getminor().
getmajor(9F), makedevice(9F)
Writing Device Drivers
No validity checking is performed. If dev is invalid, an invalid number is returned.