nbcon_state_read(9)
π nbcon_state_read(9) β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual, and honestly? she's short, she's sweet, she's a little helper function and she ate. periodt. let's get into it πΈ
β¨ NAME β¨
nbcon_state_read β a helper function that reads the console state π«Ά
π¦ SYNOPSIS π¦
void nbcon_state_read (struct console *con , struct nbcon_state *state );
no cap, that's the whole flex π
π ARGUMENTS π
conβ the console you wanna read from. like, that's the main character right there πstateβ the state where you store the result. she's the output container, the little cup holding your freshly-read vibes π
π SEE ALSO π
first off, the kernel file lives at ./kernel/printk/nbcon.c β that's her home, her address, her whole zip code π and then there's the entire friend group, literally the whole gc, all the related friends:
nbcon_state_set(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_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, that's the whole squad, no one left out, we don't do that here π
so yeah β go read that console state, bestie. you got this. slay π β¨
and for the little sign-off: this lil masterpiece is sourced from ./kernel/printk, dated October 2026, and yeah the name repeats at the bottom (nbcon_state_read(9)) because she's iconic like that ππΈπ«Ά
π¦ 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