struct_group(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct_group β€” wrap a set of declarations in a mirrored struct. This is the struct_group(9) manual page, bestie πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct_group (NAME , MEMBERS... );

πŸ’– ARGUMENTS πŸ’–

  • NAME β€” the identifier name of the mirrored sub-struct. Like, the name-name for the named twin 🫢
  • MEMBERS β€” the member declarations for the mirrored structs. All the little struct members go here ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the whole vibe: this is used to create an anonymous union of two structs with identical layout and size β€” one anonymous and one named. The former can be used normally without sub-struct naming, and the latter can be used to reason about the start, end, and size of the group of struct members. No cap, that's the entire tea 😌


🌸 SEE ALSO 🌸

Kernel file ./include/linux/stddef.h β€” and also these iconic little references:


mwah πŸ’‹ this page is sourced/versioned from ./include/linux and dated October 2026 β€” stay iconic, bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from