major man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

MAKEDEV(3)		 BSD Library Functions Manual		    MAKEDEV(3)

     makedev, major, minor — device number conversion

     #include <sys/types.h>

     makedev(int major, int minor);

     major(dev_t dev);

     minor(dev_t dev);

     The 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.

     In previous implementations of FreeBSD all block and character devices
     were uniquely identified by a pair of major and minor numbers.  The major
     number referred to a certain device class (e.g. disks, TTYs) while the
     minor number identified an instance within the device class.  Later ver‐
     sions of FreeBSD automatically generate a unique device number for each
     character device visible in /dev/.	 These numbers are not divided in
     device classes.

     On FreeBSD these macros are only used by utilities that need to exchange
     numbers with other operating systems that may use different encodings for
     dev_t, but also applications that present these numbers to the user in a
     more conventional way.

     The 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.

     devfs(5), devname(3), mknod(2)

BSD			      September 28, 2008			   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net