debug_set_critical(9)
π debug_set_critical(9) β the "don't spin, just try" era
okay so bestie, welcome to the Kernel API Manual, section 9 β yes, the kernel API manual, we're in the big leagues now π. This page is all about debug_set_critical, and ngl it's a tiny function with a very specific job. Let's get into it β¨
πΈ NAME πΈ
debug_set_critical β event/exception functions try lock instead of spin. that's the whole vibe, fr fr π
π¦ SYNOPSIS π¦
void debug_set_critical (void );
π ARGUMENTS π
voidβ no arguments. none. zero. the void is voiding π«Ά
β RETURN β
none
like, literally nothing comes back. it's giving "I did the thing and left" π
π DESCRIPTION π
So here's the tea β β right now this is used in the case of stopping all CPUs but the current one. Once you're in that state, the functions that write a debug entry for an event or an exception no longer spin on the debug area lock. Instead they only try to get it, and if they don't get the lock, they just fail. no waiting, no spinning, no hanging around the lock like it's a group chat you weren't invited to π
tl;dr: spin β try. that's the whole character arc π
π§ SEE ALSO π§
the kernel file ./arch/s390/kernel/debug.c is the main character here, and these are the friends in its group chat:
debug_next_entry(9)debug_to_act_entry(9)debug_prev_entry(9)debug_move_entry(9)debug_dump(9)debug_register_mode(9)debug_register(9)debug_register_static(9)debug_unregister(9)debug_set_level(9)debug_stop_all(9)debug_register_view(9)debug_unregister_view(9)
lowkey a whole squad. go read them, iykyk πβ¨
this page came from ./arch/s390/kernel, dated October 2026 β stay critical, bestie, and don't spin on anything that doesn't deserve it π¦π
π¦ 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