nbcon_get_c...ency_nesting(9)
π 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:
nbcon_state_set(9)nbcon_state_read(9)nbcon_state_try_cmpxchg(9)nbcon_seq_read(9)nbcon_seq_force(9)nbcon_seq_try_update(9)nbcon_context_try_acquire_direct(9)nbcon_context_try_acquire_requested(9)nbcon_context_try_acquire_handover(9)nbcon_context_try_acquire_hostile(9)nbcon_context_try_acquire(9)nbcon_context_release(9)nbcon_context_can_proceed(9)nbcon_can_proceed(9)__nbcon_context_update_unsafe(9)nbcon_enter_unsafe(9)nbcon_exit_unsafe(9)nbcon_reacquire_nobuf(9)nbcon_emit_next_record(9)nbcon_kthread_should_wakeup(9)nbcon_kthread_func(9)nbcon_irq_work(9)nbcon_kthreads_wake(9)nbcon_kthread_create(9)nbcon_get_default_prio(9)nbcon_allow_unsafe_takeover(9)nbcon_legacy_emit_next_record(9)__nbcon_atomic_flush_pending_con(9)nbcon_atomic_flush_pending_con(9)__nbcon_atomic_flush_pending(9)nbcon_atomic_flush_pending(9)nbcon_atomic_flush_unsafe(9)nbcon_cpu_emergency_enter(9)nbcon_cpu_emergency_exit(9)nbcon_alloc(9)nbcon_free(9)nbcon_device_try_acquire(9)nbcon_device_release(9)nbcon_kdb_try_acquire(9)nbcon_kdb_release(9)nbcon_write_context_is_braille(9)nbcon_braille_try_acquire(9)nbcon_braille_release(9)
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
- 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