nbcon_cpu_emergency_enter(9)
π nbcon_cpu_emergency_enter β Kernel API Manual
okay so bestie, welcome to the manual page for nbcon_cpu_emergency_enter(9), live from the Kernel API Manual. this one is short and sweet and honestly kind of iconic for how much it does with so little π
β¨ NAME β¨
nbcon_cpu_emergency_enter β enter an emergency section where printk() messages for that CPU are flushed directly π¨
πΈ SYNOPSIS πΈ
void nbcon_cpu_emergency_enter (void );
π¦ ARGUMENTS π¦
voidβ no arguments, literally none, she takes nothing and gives everything π
β CONTEXT β
Any context. Disables preemption β yes, any context, she's flexible like that, but she does turn preemption off while she's in there π«Ά
π₯ DESCRIPTION π₯
So when you're within an emergency section, printk calls will attempt to flush any pending messages in the ringbuffer. that's the whole vibe: emergency mode on, messages get flushed straight away instead of chilling in the ringbuffer, periodt π
ngl this is the emergency-est little function and the ringbuffer does not get to hold onto those messages anymore π
π SEE ALSO π
Kernel file ./kernel/printk/nbcon.c, plus the whole 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_cpu_emergency_nesting(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_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)
and that's the page, bestie π§ this diva came from ./kernel/printk and the version-date stamp says October 2026, signed off with her own name nbcon_cpu_emergency_enter(9) like the main character she is πβ¨
π¦ 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