etoimajor(D3) etoimajor(D3)
NAME
etoimajor - convert external to internal major device number
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
int etoimajor(major_t emaj);
Arguments
emaj External major number.
DESCRIPTION
etoimajor converts the external major number emaj to an
internal major number.
Return Values
etoimajor returns the internal major number or NODEV if the
external major number is invalid.
USAGE
See getemajor(D3) for a description of external and internal
major numbers.
Level
Initialization, Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
getemajor(D3), geteminor(D3), getmajor(D3), getminor(D3),
itoemajor(D3), makedevice(D3)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1