nbcon_seq_try_update(9)
π nbcon_seq_try_update β a Kernel API Manual moment π
okay so this is nbcon_seq_try_update(9), straight out of the Kernel API Manual, and yes bestie we're getting into printk console internals together π«Ά
β¨ NAME β¨
nbcon_seq_try_update β the "try to update the console sequence number" girlie π
πΈ SYNOPSIS πΈ
void nbcon_seq_try_update (struct nbcon_context *ctxt , u64 new_seq );
like, that's the whole signature. no cap. π
π¦ ARGUMENTS π¦
ctxtβ a pointer to an acquire context, and this thing is literally carrying all the info about the acquire mode. main character energy fr fr πnew_seqβ the new sequence number we're setting. the fresh value. the glow-up number β¨
π DESCRIPTION π
so here's the tea π: ctxt->seq gets updated to the new value of con::nbcon_seq, and that value is expanded to the 64bit value.
and the important part β it could lowkey be a different value than new_seq. π when?? if nbcon_seq_force was used, or if the current context no longer owns the console. in that second case, it will stop printing anyway, so it's giving "we're done here" energy. periodt.
π SEE ALSO π
the whole friend group, in ./kernel/printk/nbcon.c β kernel file, iconic, no notes:
nbcon_state_set(9)nbcon_state_read(9)nbcon_state_try_cmpxchg(9)nbcon_seq_read(9)nbcon_seq_force(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)
and that's the whole page, bestie, you ate that π«Ά this cutie lives in ./kernel/printk, dated October 2026, and it's literally called nbcon_seq_try_update(9) β go read it again, 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