STRUCT COUNTER_ATTRIBUTE_GROUP(9)
π 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 π§
- Kernel file
./drivers/counter/counter-sysfs.c struct counter_attribute(9)counter_sysfs_add(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms