getminor - get minor device number
#include <sys/types.h> #include <sys/mkdev.h> #include <sys/ddi.h> minor_t getminor(dev_t dev);
Architecture independent level 1 (DDI/DKI).
dev
The getminor() function extracts the minor number from a device number.
The getminor() function can be called from user, interrupt, or kernel context.
See the getmajor(9F) manual page for an example of how to use getminor().
getmajor(9F), makedevice(9F)
No validity checking is performed. If dev is invalid, an invalid number is returned.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |