nbcon_free(9)
π nbcon_free(9) π
okay so this is a page from the Kernel API Manual β yes, that Kernel API Manual β and honestly? it's a little short king but it matters, so let's get into it bestie π
β¨ NAME β¨
nbcon_free β free and clean up the nbcon-console-specific data. that's it. that's the job. she's a deallocator π«Ά
β¨ SYNOPSIS β¨
void nbcon_free (struct console *con );
β¨ ARGUMENTS β¨
conβ the console whose nbcon data you're freeing / cleaning up. that's your girl, send her off π
β¨ DESCRIPTION β¨
β οΈ Important, and I mean IMPORTANT: have_nbcon_console must be updated before you call this function. the way the ordering is non-negotiable π
and like β specifics matter here β it can only be set when there is still another nbcon console registered. so no, you can't just set it whenever you feel like it, the vibes have to be correct first πΈ
β¨ SEE ALSO β¨
the source lives in the kernel file ./kernel/printk/nbcon.c, and here's the whole friend group, no one gets left out π:
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_enter(9)nbcon_cpu_emergency_exit(9)nbcon_alloc(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 whole page, bestie, you ate that π this came out of ./kernel/printk and it's dated October 2026 β memory unlocked, ily, go free your console πβ¨
π¦ 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