etoimajor(D3DK) —
.IX \f4etoimajor\fP(D3DK)
NAME
etoimajor − convert external to internal major device number .IX major device number
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
major_t etoimajor(major_t emaj);
ARGUMENTS
emajExternal major number.
DESCRIPTION
etoimajor converts the external major number (emaj) to an internal major number. See getemajor(D3DK) for a description of external and internal major numbers.
RETURN VALUE
etoimajor returns the internal major number or NODEV if the external major number is invalid.
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
getemajor(D3DK), geteminor(D3DK), getmajor(D3DK), getminor(D3DK), itoemajor(D3DK), makedevice(D3DK)
DDI/DKI