.TH getminor() "" "" "DDI/DKI Kernel Routine"
.PC "Get internal minor-device number"
.B "#include <sys/types.h>"
.B "#include <sys/ddi.h>"
\fBminor_t getminor(\fIdevice\^\fB)\fR
\fBdev_t \fIdevice\^\fB;\fR
.PP
.B getminor()
returns the internal minor-device number for
.IR device .
For a description of external and internal minor-device numbers,
see the entry for
.BR geteminor() .
.SH "See Also"
.B
DDI/DKI kernel routines,
device numbers,
etoimajor(),
getemajor(),
geteminor(),
getmajor(),
makedevice()
.R
.SH Notes
.B getminor()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
.PP
.B getminor()
returns no validity checking:
if
.I device
is bogus, it returns a bogus minor-device number.
