DEVICE_ATTR_RW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

DEVICE_ATTR_RW β€” Define a read-write device attribute. Periodt πŸ’…βœ¨

✨ SYNOPSIS ✨

DEVICE_ATTR_RW (_name );

πŸŽ€ ARGUMENTS πŸŽ€

  • _name β€” Attribute name. That’s the name-name, bestie β€” it’s literally doing exactly what it says on the label 🏷️🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so it’s giving DEVICE_ATTR, but with the values already slotted in: Like DEVICE_ATTR, but _mode is 0644, _show is <_name>_show, and _store is <_name>_store. No cap, that’s the whole vibe πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./include/linux/device.h is the main-character source file here, and these are all the linked besties β€” every single one, no skipping 🫢:


And the footer tea β˜•: this page comes from ./include/linux, dated October 2026, under the title DEVICE_ATTR_RW(9) β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from