nbcon_atomic..._pending_con(9)
π nbcon_atomic_flush_pending_con(9) β Kernel API Manual β¨
okay bestie, welcome to the nbcon corner of the kernel API manual, this one's a whole little function and she's very specific about her job π
πΈ NAME πΈ
nbcon_atomic_flush_pending_con β flush the specified nbcon console using its write_atomic() callback π₯
she does exactly one thing and she does it atomically, no cap.
β¨ SYNOPSIS β¨
void nbcon_atomic_flush_pending_con (struct console *con , u64 stop_seq );
two args, zero return value, all business π
π¦ ARGUMENTS π¦
conβ the nbcon console you want flushed, like, this one right here π«Άstop_seqβ flush right up until this record. that's the finish line, bestie β
π DESCRIPTION π
so here's the tea β β this will stop flushing before stop_seq if another context has ownership. and then that context? yeah, she's responsible for the flushing. main character handoff energy π
likewise, if new records get added while this context was flushing and there's no other context to handle the printing, then this context must also flush those records too. no leaving them hanging, fr fr π
lowkey important: the ownership thing is the whole vibe check here. if someone else grabbed it, you back off and let them cook π
π§ SEE ALSO π§
Kernel file ./kernel/printk/nbcon.c β go read the source, it's giving lore π
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(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 friend group, they all show up ππ
and that's the page!! brought to you by the fine folks over at ./kernel/printk, dated October 2026 β see you in the next one, bestie πππ
π¦ 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