pr_emerg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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