print_tainted(9)
π print_tainted (9) π
okay so bestie, welcome to the print_tainted page β it's a little kernel-API moment from the <purple>Kernel API Manual</purple> girlies, and honestly? she's short but she ATE. let's get into it π
β¨ NAME β¨
print_tainted β returns a string that represents the kernel taint state. that's the whole gig. no cap. π¦
πΈ SYNOPSIS πΈ
const char * print_tainted (void );
like, she takes nothing, she gives you a const char *. main character energy fr π
π ARGUMENTS π
voidβ no arguments. none. zero. void. she doesn't want your input, she's booked and busy π
π§ DESCRIPTION π§
so what does she actually do? she hands you back a string describing the kernel's taint state. for what each individual taint flag actually means, go look at Documentation/admin-guide/sysctl/kernel.rst β that's the lore drop, iykyk πβ¨
okay but real talk, bestie, listen: the string is overwritten by the next call to print_tainted. so don't go holding onto that pointer like it's your emotional support string, because it is NOT sticking around ππ
the one glow-up she does guarantee: she's always NULL terminated. every single time. periodt. π
π₯ SEE ALSO π₯
- kernel file
./kernel/panic.cπ panic_smp_redirect_cpu(9)panic_try_force_cpu(9)vpanic(9)print_tainted_verbose(9)add_taint(9)
like a little friend group, honestly. go say hi π«Ά
and that's the page!! stan a tiny kernel function that knows exactly what it is β this cutie lives in ./kernel and the version/date on her birth certificate says October 2026 β mwah, bye bestie πππΈ
π¦ 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