Query: minor
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MAKEDEV(3) BSD Library Functions Manual MAKEDEV(3)NAMEmakedev, major, minor -- device number conversionSYNOPSIS#include <sys/types.h> dev_t makedev(int major, int minor); int major(dev_t dev); int minor(dev_t dev);DESCRIPTIONThe makedev() macro allows a unique device number to be generated based on its major and minor number. The major() and minor() macros can be used to obtain the original numbers from the device number dev. All block and character devices are uniquely identified by a pair of major and minor numbers. The major number refers to a certain device class (e.g. disks, TTYs) while the minor number identifies an instance within the device class.RETURN VALUESThe major() macro returns a device major number that has a value between 0 and 255. The minor() macro returns a device minor number whose value can span the complete range of an int.SEE ALSOmknod(2), devname(3), MAKEDEV(8)BSDApril 1, 2011 BSD
| Related Man Pages |
|---|
| gnu_dev_major(3) - linux |
| gnu_dev_makedev(3) - linux |
| gnu_dev_minor(3) - linux |
| minor(3) - linux |
| gnu_dev_makedev(3) - suse |
| Similar Topics in the Unix Linux Community |
|---|
| minor bug |
| major & minor number |
| minor issue on question that i had posted !! |
| How to filter out major and minor? |
| Boot failure - Warnings for /etc/major_to_minor and /etc/driver_aliases |