interrupt_context_level(9)
π interrupt_context_level(9) π
okay so first things first, this page lives in the Kernel API Manual (yes bestie, the kernel has lore and it's thick), and it's about one very specific little function. let's get into it π«Ά
β¨ NAME β¨
interrupt_context_level β literally just returns the interrupt context level. that's the whole job. she's an icon, she's a one-trick pony, and honestly? the pony ate. π
πΈ SYNOPSIS πΈ
unsigned char interrupt_context_level (void );
look at her. unsigned char return type, void args, zero drama. no cap. π
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. none. nada. she takes nothing from you, she just gives. main character energy fr fr π
π₯ DESCRIPTION π₯
so the way this works is she returns the current interrupt context level β like a vibe check for where the CPU currently is in kernel-land. and the levels are:
0β normal context π (chill, everyday, nothing spicy happening)1β softirq context β (deferred work, still kinda relaxed)2β hardirq context π₯ (okay now we're in an actual hardware interrupt, be normal)3β NMI context π (non-maskable interrupt, the final boss, absolutely no games being played)
that's it, that's the whole mapping. 0, 1, 2, 3 β memorize it, screenshot it, put it on your lock screen. iykyk β¨
π§ SEE ALSO π§
- Kernel file
./include/linux/preempt.hβ the actual home of all this, go read her π preempt_disable_nested(9)π¦preempt_enable_nested(9)π¦
like, if interrupt_context_level is the main character, these two are her besties showing up in the same friend group. go say hi. π«Ά
ngl if you're poking around interrupt levels you should probably know what preemption is doing, so don't skip the SEE ALSO. that's your homework. π
and that's the page!! source vibes come straight from ./include/linux, dated October 2026 πΈ β mwah, go forth and check your context levels responsibly, bestie π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms