debug_set_critical(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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