pr_alert(9)
π pr_alert(9) β Kernel API Manual, bestie edition π
Okay so we're doing the pr_alert page from the Kernel API Manual and honestly? It's a short one, so let's just get into it β¨
πΈ NAME πΈ
pr_alert β Print an alert-level message. That's it. That's the whole vibe check. π
π SYNOPSIS π
pr_alert (fmt , ... );
Yes bestie, those spaces are real, keep them exactly like that, no cap π
π¦ ARGUMENTS π¦
fmtβ the format string, aka the blueprint of whatever you're about to yell into the kernel log π£οΈ...β the arguments for the format string, i.e. all the little values that get slotted into yourfmtπ
β¨ DESCRIPTION β¨
So here's the tea β β this macro literally expands to a printk with the KERN_ALERT loglevel. That's the whole flex. It uses pr_fmt to generate the format string, which is how your messages get that cute consistent prefix energy π
Lowkey iconic that a one-liner gets its own manpage, but we respect it π«Ά
π SEE ALSO π
Kernel file ./include/linux/printk.h and its whole friend group:
printk_cpu_sync_get_irqsave(9)printk_cpu_sync_put_irqrestore(9)pr_fmt(9)printk(9)pr_emerg(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)
Go read them, they're all slaying in their own way π β¨
Fr fr though,pr_alertis a macro, so nothing is undefined here β just remember it's expanding toprintkwithKERN_ALERTand usingpr_fmt. That's the entire plot ππ
And that's the page!! Signing off from ./include/linux, dated October 2026 ποΈπ§ stay alert bestie, literally ππ
π¦ 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