major man page on NetBSD

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

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

NAME
     makedev, major, minor — device number conversion

SYNOPSIS
     #include <sys/types.h>

     dev_t
     makedev(int major, int minor);

     int
     major(dev_t dev);

     int
     minor(dev_t dev);

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

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

SEE ALSO
     mknod(2), devname(3), MAKEDEV(8)

BSD				 April 1, 2011				   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

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]
Tweet
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