console_srcu_write_flags(9)
π console_srcu_write_flags(9)
okay bestie, welcome to the Kernel API Manual page for console_srcu_write_flags β it's giving tiny-but-important console helper energy, and we're gonna get into it β¨
πΈ NAME πΈ
console_srcu_write_flags β write flags for a registered console π
β¨ SYNOPSIS β¨
void console_srcu_write_flags (struct console *con , short flags );
π ARGUMENTS π
conβ astruct consolepointer for the console whose flags you're writing to π«Άflagsβ the new flags value to write π
π¦ DESCRIPTION π¦
So like, this function writes flags for a registered console. That's the whole vibe. But bestie, there is a rule and we do not ignore it:
Only use this function to write flags for registered consoles. It requires holding the console_list_lock.
No cap β registered consoles only, and hold console_list_lock while you're at it. That lock requirement is literally not optional ππ
π₯ CONTEXT π₯
Any context. Yep, literally any context β that's the whole context section, periodt π
π SEE ALSO π
- Kernel file
./include/linux/console.hπ struct consw(9)enum cons_flags(9)struct nbcon_state(9)enum nbcon_prio(9)struct nbcon_context(9)struct nbcon_write_context(9)struct console(9)console_srcu_read_flags(9)for_each_console_srcu(9)for_each_console(9)
that's the page, bestie π«Ά source/version vibes: ./include/linux, dated October 2026, and the page tag is console_srcu_write_flags(9). iconic, no notes β¨π
π¦ 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