.TH splx() "" "" "DDI/DKI Kernel Routine"
.PC "Reset an interrupt-priority level"
.B "#include <sys/inline.h>"
\fBpl_t splx(\fIoldlevel\^\fB)\fR
\fBpl_t \fIoldlevel\^\fB;\fR
.PP
.B splx()
sets the level of interrupt priority to
.IR oldlevel ,
which must have been returned by a previous call to
.BR splbase() ,
.BR spldisk() ,
.BR splhi() ,
.BR splstr() ,
or
.BR spltimeout() .
It returns the previous level of interrupt priority.
.SH "See Also"
.B
DDI/DKI kernel routines,
splbase(),
spldisk(),
splhi(),
splstr(),
spltimeout()
.R
.SH Notes
.B splx()
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.
