MINOR man page on Mageia

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

MAJOR(9)		       Kernel Functions			      MAJOR(9)

NAME
       MAJOR, MINOR, MKDEV - macros to manipulate device major/minor numbers

SYNOPSIS
       #include <linux/fs.h>

       #define MAJOR(dev)
       #define MINOR(dev)
       #define MKDEV(major, minor)

DESCRIPTION
       The MAJOR and MINOR macros extract from a device id (of type dev_t) the
       major and minor numbers respectively. It is the combined device	number
       that is found in the struct~file structure.

       The  MKDEV  macro assembles a device number from the supplied major and
       minor numbers.

RETURN VALUE
       Describe the return values. Enumerate all the distinct values  and  all
       the ranges.

AVAILABILITY
       Linux 0.0+

       In  later kernels (Linux 2.1 and later) there is movement towards using
       64bit device numbers. Although it is generally a good idea to not  pre‐
       sume  to	 know  how  device  numbers are constructed, it is during this
       period of transition fundamentally important that you  ONLY  use	 these
       functions to manipulate device numbers.

SEE ALSO
       mknod(1)

       Also list some source files for the kernel that implement the functions
       of the page.

AUTHOR
       Stephen Williams <steve@icarus.com>

BUGS
       These are macros, so parameters may be evaluated multiple times.

Linux DDI			    $Date:$			      MAJOR(9)
[top]

List of man pages available for Mageia

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