nbcon_state_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to nbcon_state_set(9) from the Kernel API Manual β€” it’s the helper function to set the console state. πŸ’… Literally the little setter with main-character energy.

🌸 SYNOPSIS 🌸

void nbcon_state_set (struct console *con , struct nbcon_state *new );

πŸŽ€ ARGUMENTS πŸŽ€

  • con β€” the struct console * for the Console to update. This is the console you’re updating, bestie. 🫢
  • new β€” the struct nbcon_state * holding The new state to write. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this is important, no cap: only use nbcon_state_set when the console is not yet or no longer visible in the system. That’s the vibe check. Otherwise, use nbcon_state_try_cmpxchg instead. Periodt. πŸ’–

🌈 SEE ALSO 🌈

Kernel file: ./kernel/printk/nbcon.c β€” and here’s the whole iconic crew:


Sign-off, bestie: source/version ./kernel/printk; date October 2026; page nbcon_state_set(9). Stay iconic. πŸ’‹βœ¨

πŸ“¦ where this page comes from