pr_notice(9)
π pr_notice β Kernel API Manual β¨
okay so bestie, welcome to the pr_notice(9) page π this is one of those tiny-but-iconic kernel macros and honestly? she ate. let's get into it π
πΈ NAME πΈ
pr_notice β the girl who prints a notice-level message π that's it, that's the job, and she does it flawlessly, no cap.
β¨ SYNOPSIS β¨
pr_notice (fmt , ... );
like, you call her, you hand her a format string, you hand her the args, she handles the rest π«Ά
π¦ ARGUMENTS π¦
fmtβ the format string π« literally the template for whatever you wanna say...β the arguments for the format string π i.e. all the little values that get slotted intofmt
π DESCRIPTION π
so here's the tea β this is a macro, right? and it expands into a printk call rocking the KERN_NOTICE loglevel π₯ so everything you print through her shows up tagged as notice-level, periodt.
and the way that she's so smart?? she uses pr_fmt to generate the format string π
so your output gets that nice prefixed treatment, iykyk. it's giving "small macro, big main character energy" π
no like genuinely, don't sleep on this one β she's doing a lot of work behind the scenes for something that looks like one little line π§
π SEE ALSO π
go check out the kernel file ./include/linux/printk.h for the whole squad π and then these icons, fr fr:
printk_cpu_sync_get_irqsave(9)printk_cpu_sync_put_irqrestore(9)pr_fmt(9)printk(9)pr_emerg(9)pr_alert(9)pr_crit(9)pr_err(9)pr_warn(9)pr_info(9)pr_cont(9)pr_devel(9)pr_debug(9)print_hex_dump_bytes(9)
like the whole printk friend group ππ every loglevel has her moment and honestly? we love a supportive family πΈ
and that's the page bestie!! π this lil beauty lives over in ./include/linux and the version we're looking at is dated October 2026 π so yeah β go forth, print your notices, and slay π
β¨π
π¦ 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