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

getminor(D3)


getminor -- get internal minor device number

Synopsis (Not in current DDI version)

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

minor_t getminor(dev_t dev);

Description

The getminor function extracts the internal minor number from a device number.

Arguments


dev
Internal device number.

Return values

The internal minor 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

getminor( ) 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), getmajor(D3), makedevice(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005