Query: splraiseipl
OS: netbsd
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SPLRAISEIPL(9) BSD Kernel Developer's Manual SPLRAISEIPL(9)NAMEsplraiseipl -- raise the system priority levelSYNOPSIS#include <sys/param.h> int splraiseipl(ipl_cookie_t icookie);DESCRIPTIONsplraiseipl() raises the system priority level to the level specified by icookie. icookie should be a value returned by makeiplcookie(). In general, device drivers should not make use of this interface. To ensure correct synchronization, device drivers should use the condvar(9), mutex(9), and rwlock(9) interfaces. See the spl(9) manual page for a description of interrupt priority levels.RETURN VALUESsplraiseipl() returns saved priority level which can be used for splx().EXAMPLESThe following two lines are functional equivalents. s = splraiseipl(makeiplcookie(IPL_VM)); s = splvm(); Because makeiplcookie() can be slow and is not expected to be used in a perfomance critical path, it's better to do it beforehand. initialization_code(ipl_t ipl) { ourcookie = makeiplcookie(ipl); } performance_critical_code() { int s; s = splraiseipl(ourcookie); do_something(); splx(s); }SEE ALSOcondvar(9), makeiplcookie(9), mutex(9), rwlock(9), spl(9)BSDFebruary 11, 2007 BSD
Related Man Pages |
---|
splstatclock(9) - netbsd |
splbio(9) - netbsd |
splnet(9) - netbsd |
spl0(9) - netbsd |
splsched(9) - netbsd |
Similar Topics in the Unix Linux Community |
---|
ipl: 1.0.2 now available |
Expire Command | Need Help |