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

itoemajor(D3)


itoemajor -- convert internal to external major device number

Synopsis (Not in current DDI version)

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

int itoemajor(major_t imaj, int prevemaj);

Description

itoemajor converts the internal major number imaj to the external major number. The external-to-internal major number mapping can be many-to-one, and so any internal major number may correspond to more than one external major number.

Arguments


imaj
Internal major number.

prevemaj
Most recently obtained external major number (or NODEV, if this is the first time the function has been called).

Return values

External major number, or NODEV, if all have been searched.

Usage

By repeatedly invoking this function and passing the most recent external major number obtained, the driver can obtain all possible external major number values.

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

itoemajor( ) is not supported in DDI 8. See ``Device number'' in HDK Technical Reference.

References

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