nbcon_seq_force(9)
π nbcon_seq_force β bestie edition
okay so this is a page from the Kernel API Manual, and honestly? it's a little shorty but she's important. Welcome to nbcon_seq_force(9), aka "bestie, please set the console sequence number, I'm begging you."
β¨ NAME β¨
nbcon_seq_force β force the console sequence to a specific value. No negotiation, no vibes, just force. π
πΈ SYNOPSIS πΈ
void nbcon_seq_force (struct console *con , u64 seq );
like literally that's the whole signature. she's a void, she returns nothing, she simply does the thing. β¨
π ARGUMENTS π
conβ the console you're working on. the main character of this operation π«Άseqβ the sequence number value to set. the number. the value. the moment. π¦
π DESCRIPTION π
okay so listen. π«Ά This one is only to be used during init β like, before registration, when nobody's watching yet β or in extreme situations (and by extreme I mean stuff like panic with CONSOLE_REPLAY_ALL). π
So: not an everyday flex. It's giving "emergency only, handle with care" energy. nbcon_seq_force forces the console sequence to a specific value, and that's the entire personality. periodt. π
bestie pls do not casually call this in normal code paths, the manpage said init-or-extreme and I felt that π
π¦ SEE ALSO π¦
the kernel file for all this is ./kernel/printk/nbcon.c β go read her, she's iconic. and here's the whole friend group, all of them, no cap: π
the state girlies π
nbcon_state_set(9)nbcon_state_read(9)nbcon_state_try_cmpxchg(9)nbcon_seq_read(9)nbcon_seq_try_update(9)
acquiring the vibe (or handing it over) π₯
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)
can we proceed? asking for a friend π
unsafe era (respectfully) β οΈ
__nbcon_context_update_unsafe(9)nbcon_enter_unsafe(9)nbcon_exit_unsafe(9)nbcon_reacquire_nobuf(9)
emitting / kthread lore π
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)
flush squad πΏ
__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)
emergency in and out π¨
alloc / free aka the circle of life π§
device besties π
kdb besties β
braille besties (yes really, slay) π
k that's the whole page, mwah π β this came out of the ./kernel/printk source tree, version vibes October 2026, and yeah that's the date, she's from the future apparently. iykyk πβ¨π
π¦ 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