*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> major (9)              
Title
Content
Arch
Section
 

DEVICE_IDS(9)

Contents


NAME    [Toc]    [Back]

     device_ids, major, minor, umajor, uminor -- calculate device ids

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <sys/systm.h>

     int
     major(dev_t dev);

     int
     minor(dev_t dev);

     int
     umajor(udev_t id);

     int
     uminor(udev_t id);

DESCRIPTION    [Toc]    [Back]

     The device_ids family of functions take either the raw device ID, id, or
     a pointer to the device structure, dev, and return the integer value that
     is the major or minor device ID as requested.

     The actual major and minor device IDs are values masked from of the raw
     device ID.  For details on the actual calculations used to determine the
     major or minor IDs see the actual source in kern_conf.c.

RETURN VALUES    [Toc]    [Back]

     An integer greater than zero and less than NUMCDEVSW.  major() and
     minor() will return NOUDEV if the device is invalid.

AUTHORS    [Toc]    [Back]

     This manual page was written by Chad David <[email protected]>.


FreeBSD 5.2.1			 July 9, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
autochanger HP-UX SCSI interfaces for medium changer device and magnetooptical autochanger surface device
devctl FreeBSD device event reporting and device control interface
device_add_child_ordered FreeBSD add a new device as a child of an existing device
filename_to_drivername IRIX determine the device name for the device file
filename_to_devname IRIX determine the device name for the device file
device_add_child FreeBSD add a new device as a child of an existing device
RMD160End OpenBSD calculate the
RMD160Final OpenBSD calculate the
RMD160Data OpenBSD calculate the
RMD160File OpenBSD calculate the
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service