STRUCT COUNTER_ATTRIBUTE_GROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct counter_attribute_group(9)

ok so this one's straight out of the Kernel API Manual, and bestie it's a tiny little struct that just... holds an attribute group together. like a little friend group for sysfs attributes, no cap 🫢


✨ NAME ✨

struct counter_attribute_group β€” container for attribute group

like, literally that's its whole job: it's the container. the group chat, if you will, and the attributes are the members πŸŽ€


🌸 SYNOPSIS 🌸

struct counter_attribute_group {
    const char *name;
    struct list_head attr_list;
    size_t num_attr;
 };

πŸ¦‹ Members πŸ¦‹

  • name β€” the name of the attribute group. its whole identity, its main character moment πŸ’…
  • attr_list β€” a list that keeps track of the attributes that got created. it's giving "who's in the group chat" energy πŸ‘€
  • num_attr β€” the number of attributes. yes it's counting. it's a whole vibe check on how many friends you have in there πŸ”₯

🧚 SEE ALSO 🧚

iykyk, go read those next, they're iconic ✨


ok that's the whole page, it's short and sweet and honestly a little slay of a struct πŸ’–

and that's a wrap bestie!! this little beauty lives in ./drivers/counter and the docs are dated October 2026 β€” screenshot it, memorise it, obsess over it, periodt πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from