nbcon_atomic..._pending_con(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ“–

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