STRUCT DEV_EXT_ATTRIBUTE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

okay so bestie, say hi to struct dev_ext_attribute β€” the iconic little struct that's literally an exported device attribute with extra context, periodt ✨

(also quick vibe check: this is from the Kernel API Manual, section 9 β€” you're in the kernel dev page, iykyk πŸ’…)


✨ SYNOPSIS

like, here's the whole thing, no cap:

struct dev_ext_attribute {
    struct device_attribute attr;
    void *var;
 };

that's it. two members. she's lowkey minimal and we're obsessed πŸŽ€


🌸 MEMBERS

  • attr β€” the exported device attribute itself, main character energy, doing the actual attribute work πŸ¦‹
  • var β€” a pointer to context, aka the little carry-on bag of extra info that comes with her ✨

πŸ’… SEE ALSO

okay this list is a whole journey, buckle up 🫢 β€” and yeah, it lives in the kernel file ./include/linux/device.h:

like, that's a friend group πŸ’€ but honestly every single one of them ate πŸ”₯


ngl bestie, go read them all. not me being a whole study guide rn πŸ“šπŸ’–

and that's the tea πŸ“ β€” brought to you by the source at ./include/linux, dated October 2026, serving struct dev_ext_attribute(9) realness. slay, bye πŸ‘‘βœ¨

πŸ“¦ where this page comes from