ENUM CONS_FLAGS(9)
π NAME π
okay so this is the enum cons_flags(9) page from the Kernel API Manual β itβs all about the general console flags, aka the console vibe check. π
β¨ SYNOPSIS β¨
enum cons_flags {
CON_PRINTBUFFER ,
CON_CONSDEV ,
CON_ENABLED ,
CON_BOOT ,
CON_ANYTIME ,
CON_BRL ,
CON_EXTENDED ,
CON_SUSPENDED ,
CON_NBCON ,
CON_NBCON_ATOMIC_UNSAFE
};
π Constants π
CON_PRINTBUFFERβ newly registered consoles use this to dodge duplicate output of messages that were already shown by boot consoles or read by userspace via thesyslogsyscall. no double-posting energy πCON_CONSDEVβ says the console driver is backing/dev/console. main character energy for/dev/consoleπCON_ENABLEDβ tells you if a console is allowed to print records. if itβs false, the console also will not advance to later records. bestie, itβs literally paused πCON_BOOTβ marks the console driver as an early console driver used during boot before the real driver becomes available. it will be automatically unregistered when the real console driver is registered unless thekeep_bootconparameter is used. temporary era, iconic exit β¨CON_ANYTIMEβ a misnomed historical flag which tells the core code that the legacyconsole::writecallback can be invoked on a CPU which is markedOFFLINE. that is misleading as it suggests that there is no contextual limit for invoking the callback. the original motivation was readiness of the per-CPU areas. historical lore, slightly chaotic π«ΆCON_BRLβ indicates a braille device which is exempt from receiving theprintkspam for obvious reasons. deserved exemption, fr fr πΈCON_EXTENDEDβ the console supports the extended output format of/dev/kmsg, which requires a larger output buffer. bigger buffer, bigger slay π₯CON_SUSPENDEDβ indicates if a console is suspended. if true, the printing callbacks must not be called. do not call them, periodt πCON_NBCONβ console can operate outside of the legacy styleconsole_lockconstraints. unlocked and unbothered πCON_NBCON_ATOMIC_UNSAFEβ thewrite_atomiccallback is not safe and is therefore only used bynbcon_atomic_flush_unsafe. unsafe label is real, respect it π
π SEE ALSO π
Kernel file ./include/linux/console.h β go read these besties:
struct consw(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)console_srcu_write_flags(9)for_each_console_srcu(9)for_each_console(9)
xoxo from ./include/linux, October 2026, enum cons_flags(9) πβ¨π¦
π¦ 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