nbcon_get_default_prio(9)
β¨ nbcon_get_default_prio(9) β¨
okay so this is a page from the Kernel API Manual and honestly? it's a little baddie. let's get into it π
πΈ NAME πΈ
nbcon_get_default_prio β literally just tells you the appropriate nbcon priority to use for nbcon printing on the current CPU. that's the whole vibe. no cap.
π SYNOPSIS π
enum nbcon_prio nbcon_get_default_prio (void );
π¦ ARGUMENTS π¦
voidβ no arguments bestie. she takes nothing. zero. nada. she's low maintenance like that π
π CONTEXT π
Any context. fr fr, any. she does not care where you call her from π
β RETURN β
the nbcon_prio to use for acquiring an nbcon console in this context for printing. that's the answer, that's the icon, that's the main character β¨
π DESCRIPTION π
so the way that this function is safe for reading per-CPU data in any context? iconic behavior honestly. and why is she safe? because preemption is disabled if the current CPU is in the emergency or panic state. that's the whole reason, and it's giving bulletproof π«Ά
π₯ SEE ALSO π₯
the kernel file ./kernel/printk/nbcon.c and like... her entire friend group. seriously, big squad energy:
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_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)
like I said. huge friend group. go say hi π§
and that's the page!! sourced from ./kernel/printk, dated October 2026, and yes she's still nbcon_get_default_prio(9) β periodt ππ
π¦ 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