itoemajor(D3DK) —
.IX \f4itoemajor\fP(D3DK)
NAME
itoemajor − convert internal to external major device number .IX major device number
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
major_t itoemajor(major_t imaj, major_t prevemaj);
ARGUMENTS
imajInternal major number.
prevemajMost recently obtained external major number (or -1, if this is the first time the function has been called).
DESCRIPTION
itoemajor converts the internal major number 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. 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(D3DK) for an explanation of external and internal major numbers.
RETURN VALUE
External major number, or NODEV, if all have been searched.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
etoimajor(D3DK), getemajor(D3DK), geteminor(D3DK), getmajor(D3DK), getminor(D3DK), makedevice(D3DK)
DDI/DKI