print_tainted(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ”₯

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