DEVICE_ATTR_ADMIN_RO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… DEVICE_ATTR_ADMIN_RO πŸ’…

okay so bestie, welcome to the DEVICE_ATTR_ADMIN_RO page in the Kernel API Manual β€” yes that's the whole manual name, we're fancy here πŸ’– this one's short and sweet and honestly kind of iconic for it.


✨ NAME ✨

DEVICE_ATTR_ADMIN_RO β€” define an admin-only readable device attribute. that's it. that's the whole job. no cap πŸŽ€


🌸 SYNOPSIS 🌸

DEVICE_ATTR_ADMIN_RO (_name );

like, yes, there's a space before the _name in the original and I'm not touching it because copying things exactly is the whole vibe check βœ…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • _name β€” the attribute name. that's the one (1) thing you hand it. give it a name and it slays ✨

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: it's like DEVICE_ATTR_RO, but _mode is 0400. πŸ”₯

that's literally the entire description and honestly? the way it says so much with so little. 0400 β€” admin-only readable, main character energy, nobody else gets to peek πŸ‘‘

fr fr the only difference from DEVICE_ATTR_RO is that _mode value, so don't go assuming extra behaviour, because the page doesn't say there is any πŸ™ˆ

🌈 SEE ALSO 🌈

the friend group πŸ’… all of these, exactly as listed, no gatekeeping:

like I said. whole friend group. every single one 🫢


okay that's the page!! mwah πŸ’‹ tiny little sign-off for you: this one lives in ./include/linux, it's dated October 2026, and it's filed under DEVICE_ATTR_ADMIN_RO(9) β€” go be admin-only and readable about it, bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from