SPLRAISEIPL(9)
πΈ SPLRAISEIPL(9) β raise the system priority level πΈ
bestie, welcome to the Kernel Developer's Manual page for SPLRAISEIPL(9). It's giving priority-level realness, no cap. π
β¨ NAME β¨
splraiseipl β raise the system priority level. That's literally the whole name, bestie. π
πΈ SYNOPSIS πΈ
#include <sys/intr.h>
int
splraiseipl(ipl_cookie_t icookie);
π DESCRIPTION π
okay so splraiseipl() 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. Like, lowkey respect the synchronization besties, fr fr. π
See the spl(9) manual page for a description of interrupt priority levels. π
π RETURN VALUES π
splraiseipl() returns saved priority level which can be used for splx(). So you get that saved level back, and it's ready for the splx() moment. π
π¦ EXAMPLES π¦
The 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 performance critical path, it's better to do it beforehand. Main character prep energy, honestly. π
initialization_code(ipl_t ipl)
{
ourcookie = makeiplcookie(ipl);
}
performance_critical_code()
{
int s;
s = splraiseipl(ourcookie);
do_something();
splx(s);
}
π SEE ALSO π
Source/version: Debian Β· Date: July 9, 2015 β mwah, bestie ππβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c)2006 YAMAMOTO Takashi
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms