pr_emerg(9)
π pr_emerg β the Kernel API Manual, but make it cute π
okay so bestie, welcome to the pr_emerg(9) page β this is Kernel API Manual territory, and we're about to get into it π«Ά
β¨ NAME β¨
pr_emerg β print an emergency-level message π¨ like this is the loudest, most dramatic print in the whole kernel and it knows it π
πΈ SYNOPSIS πΈ
pr_emerg (fmt , ... );
that's it, that's the whole vibe. args in, message out, chaos ensues π
π ARGUMENTS π
fmtβ the format string, aka the blueprint of your message, the main character of this whole operation π...β the arguments for the format string, aka the supporting cast that fills in all the blanks π¦
β DESCRIPTION β
so here's the tea: this macro expands to a printk with KERN_EMERG loglevel. KERN_EMERG, bestie. the emergency level. the it's-giving-the-system-is-on-fire level ππ₯
and it uses pr_fmt to generate the format string β yep, pr_fmt is the one doing the formatting glow-up behind the scenes β¨ iykyk.
no cap, this is highkey the most serious loglevel there is, so use it when you mean it π
π SEE ALSO π
- Kernel file
./include/linux/printk.h printk_cpu_sync_get_irqsave(9)printk_cpu_sync_put_irqrestore(9)pr_fmt(9)printk(9)pr_alert(9)pr_crit(9)pr_err(9)pr_warn(9)pr_notice(9)pr_info(9)pr_cont(9)pr_devel(9)pr_debug(9)print_hex_dump_bytes(9)
like, go read them, they're all iconic in their own way π
aaaand that's the page babe π this little gem lives over in ./include/linux and the version we're stanning is the October 2026 one β mwah, sending you kisses and clean logs π§πβ¨
π¦ 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