#include <sys/types.h> #include <sys/mkdev.h> #include <sys/ddi.h>minor_t ddi_getiminor(dev_t dev);
Solaris DDI specific (Solaris DDI).
ddi_getiminor() extracts the minor number from a device number. This call should be used only for device numbers that have been passed to the kernel from the user space through opaque interfaces such as the contents of ioctl(9E) and putmsg(2). The device numbers passed in using standard device entry points must continue to be interpreted using the getminor(9F) interface. This new interface is used to translate between user visible device numbers and in kernel device numbers. The two numbers may differ in a clustered system.
ddi_getiminor() can be called from user context only.
The minor number or EMINOR_UNKNOWN if the minor number of the device is invalid.
Validity checking is performed. If dev is invalid, EMINOR_UNKNOWN is returned. This behavior differs from getminor(9F).