DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

getmajor(D3)


getmajor -- get internal major device number

Synopsis (Not in current DDI version)

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

major_t getmajor(dev_t dev);

Description

The getmajor function extracts the internal major number from a device number.

Arguments


dev
Internal device number.

Return values

The internal major number.

Usage

No validity checking is performed. If dev is invalid, an invalid number is returned.

See getemajor(D3) for an explanation of external and internal major numbers.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp

Differences between versions

getmajor( ) is not supported in DDI 8; drivers can access similar information through the resmgr key and channel number. See ``Device number'' in HDK Technical Reference.

References

etoimajor(D3), getemajor(D3), geteminor(D3), getminor(D3), makedevice(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005