ENUM NBCON_PRIO(9)
π enum nbcon_prio(9)
okay bestie, so this is a page from the Kernel API Manual β it's enum nbcon_prio, and it's literally the console owner priority for nbcon consoles π so if that's your vibe, keep reading, iykyk.
β¨ NAME β¨
enum nbcon_prio β console owner priority for nbcon consoles. that's it, that's the whole thing, and it ate π
πΈ SYNOPSIS πΈ
enum nbcon_prio {
NBCON_PRIO_NONE ,
NBCON_PRIO_NORMAL ,
NBCON_PRIO_EMERGENCY ,
NBCON_PRIO_PANIC ,
NBCON_PRIO_MAX
};
like, look at her. five whole constants, living their best lives π
π¦ Constants π¦
okay so here's the cast of characters, no cap:
NBCON_PRIO_NONEβ unused π«₯ literally just sitting there, not doing anything, respecting the vibe.NBCON_PRIO_NORMALβ normal (non-emergency) usage π§ the every day, nothing's on fire, we're just vibing priority.NBCON_PRIO_EMERGENCYβ emergency output (WARN/OOPS...) π the "omg something went wrong" tier. it's giving chaos.NBCON_PRIO_PANICβ panic output π the main character of bad days. the whole system is going down and this is the priority that shows up.NBCON_PRIO_MAXβ the number of priority levels π’ not an actual level, it's the count. she's the boundary, the icon, the limit.
π₯ Description π₯
so here's the tea β β a higher priority context can takeover the console when it is in the safe state. yes, takeover. main character energy fr fr π
and the final attempt to flush consoles in panic can be allowed to do so even in an unsafe state β the manpage literally says (Hope and pray) ππ which is honestly the most honest thing in kernel documentation. ngl, iconic.
β οΈ bestie, if you're in the "unsafe state" branch here, just know that the official strategy is hope and prayer. i don't make the rules, i just read the header file.
π SEE ALSO π
go read these next, i'm obsessed with this reading list π:
- Kernel file
./include/linux/console.h struct consw(9)enum cons_flags(9)struct nbcon_state(9)struct nbcon_context(9)struct nbcon_write_context(9)struct console(9)console_srcu_read_flags(9)console_srcu_write_flags(9)for_each_console_srcu(9)for_each_console(9)
okay that's the whole page, you're welcome π this one lives in ./include/linux, from the October 2026 era of the docs β slay, bye babe πβ¨π
π¦ 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