nbcon_get_c...ency_nesting(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nbcon_get_c...ency_nesting(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual page for nbcon_get_c...ency_nesting(9) β€” yes, the header is truncated, but the full function name is nbcon_get_cpu_emergency_nesting, and we are getting into it. ✨

🌸 NAME 🌸

nbcon_get_cpu_emergency_nesting β€” Get the per CPU emergency nesting pointer. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

__ref unsigned int * nbcon_get_cpu_emergency_nesting (void );

πŸ“ ARGUMENTS πŸ“

  • void β€” no arguments, not a single one, periodt. πŸ’€

🧚 CONTEXT 🧚

For reading: any context, no cap. For writing: any context which could not be migrated to another CPU. 🫢

⭐ RETURN ⭐

Either a pointer to the per CPU emergency nesting counter of the current CPU, or to the init data during early boot. That is the whole return vibe. πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea: the function is safe for reading per-CPU variables in any context because preemption is disabled if the current CPU is in the emergency state. See also nbcon_cpu_emergency_enter. 🌈

πŸ’« SEE ALSO πŸ’«

kernel file ./kernel/printk/nbcon.c and the whole iconique friend group:


that's the page, bestie! source/version: ./kernel/printk; date: October 2026; page: nbcon_get_c...ency_nesting(9). mwah πŸ’‹

πŸ“¦ where this page comes from