struct_group_tagged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct_group_tagged(9) πŸ’…

okay bestie, you're looking at the struct_group_tagged(9) page from the Kernel API Manual, and it's giving β€œreusable tag realness” ✨ no cap. Let's get into it.


✨ NAME ✨

struct_group_tagged β€” create a struct_group with a reusable tag πŸŽ€

🌸 SYNOPSIS 🌸

struct_group_tagged (TAG , NAME , MEMBERS... );

πŸŽ€ ARGUMENTS πŸŽ€

  • TAG β€” the tag name for the named sub-struct, periodt 🏷️
  • NAME β€” the identifier name of the mirrored sub-struct, iykyk πŸ’–
  • MEMBERS β€” the member declarations for the mirrored structs 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one 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 β€” literally the whole vibe-check of that member group πŸ’….

It includes a struct tag argument for the named copy, so the specified layout can be reused later πŸ”₯. Reusable layout? Obsessed.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/stddef.h β€” also go peek at sizeof_field(9), offsetofend(9), struct_group(9), struct_group_attr(9), DECLARE_FLEX_ARRAY(9), __TRAILING_OVERLAP(9), and TRAILING_OVERLAP(9) 🌈


okay that's the whole page, bestie 🫢 source/version: ./include/linux Β· date: October 2026 Β· struct_group_tagged(9) signing off πŸ’…βœ¨

πŸ“¦ where this page comes from