.TH makedevice() "" "" "DDI/DKI Kernel Routine"
.PC "Make a device number"
.B "#include <sys/types.h>"
.B "#include <sys/ddi.h>"
\fBdev_t makedevice(\fImajor\^\fB, minor\^\fB)\fR
\fBmajor_t \fImajor\^\fB; minor_t \fIminor\^\fB;\fR
.PP
.B makedevice()
creates a device number from the external
.I major
and
.I minor
device numbers.
It returns the device number, which contains both
.I major
and
.IR minor .
.SH "See Also"
.B
DDI/DKI kernel routines,
getemajor(),
geteminor(),
getmajor(),
getminor()
.R
.SH Notes
.B makedevice()
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 makedevice()
does not validate
.I major
or
.IR minor .
.IR "Caveat utilitor!"
