'\"macro stdmacro
.if n .pH ddi_dki.etoimajor @(#)etoimajor	40.6 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} etoimajor D3D "3B2" "DDI" "\&"
.if \nX=1 .ds x} etoimajor D3D "3B2" "DDI"
.if \nX=2 .ds x} etoimajor D3D "" "\&"
.if \nX=3 .ds x} etoimajor "" "" "\&"
.TH \*(x}
.IX "\f4etoimajor\fP(D3D)"
.SH NAME
\f4etoimajor\f1 \- convert external to internal major device number
.IX "major device number"
.SH SYNOPSIS
.nf
.na
\f4#include <sys/types.h>
#include <sys/ddi.h>
.sp 0.5
int etoimajor(major_t \f2emaj\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2emaj\f1" 10n
An external major number.
.RE
.SH DESCRIPTION
\f4etoimajor\f1 converts the external major number (\f2emaj\f1)
to an internal major number.
.SH RETURN VALUE
\f4etoimajor\f1 returns the internal major number or
\f4NODEV\f1 if the external major number exceeds the \f4bdevsw\f1
and \f4cdevsw\f1 count.
.SH LEVEL
Base or Interrupt
.SH SEE ALSO
.na
\f4getemajor\f1(D3D),
\f4geteminor\f1(D3D),
\f4getmajor\f1(D3DK),
\f4getminor\f1(D3DK),
\f4itoemajor\f1(D3D),
\f4makedevice\f1(D3DK)
.ad
