DEVICE_ATTR_ADMIN_RW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… DEVICE_ATTR_ADMIN_RW πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a tiny little macro page but it's lowkey iconic, and honestly it's giving "small but powerful" main character energy ✨


🌸 NAME 🌸

DEVICE_ATTR_ADMIN_RW β€” Define an admin-only read-write device attribute. πŸŽ€


✨ SYNOPSIS ✨

DEVICE_ATTR_ADMIN_RW (_name );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • _name β€” the attribute name. that's it. that's the whole vibe check. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So basically, this macro is exactly like DEVICE_ATTR_RW, no cap β€” except _mode is 0600. 🫢

ngl that 0600 is the whole point, girlies β€” it's admin-only, meaning the file perms lock everyone else out. that's the flex. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/device.h

and like, the whole extended friend group:

like I said. the whole group chat. πŸ’€πŸ’œ


okayyy and that's the page!! mwah 😘 this one came from ./include/linux, dated October 2026 in the Kernel API Manual β€” slay, go read some kernel source bestie, ily bye!! 🧚⭐🌷

πŸ“¦ where this page comes from