sizeof_field(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ sizeof_field(9) πŸ¦‹

okay so bestie, welcome to the Kernel API Manual page for sizeof_field β€” she is here to report the size of a struct field in bytes, and honestly? iconic. πŸ’…


🌸 NAME 🌸

sizeof_field β€” report the size of a struct field in bytes. no cap, that's the whole vibe. ✨

✨ SYNOPSIS ✨

sizeof_field (TYPE , MEMBER );

πŸŽ€ ARGUMENTS πŸŽ€

  • TYPE β€” the structure containing the field of interest 🫢
  • MEMBER β€” the field to return the size of 🌸

πŸ’– SEE ALSO πŸ’–

go peek at the Kernel file ./include/linux/stddef.h, plus these besties: offsetofend(9), struct_group(9), struct_group_attr(9), struct_group_tagged(9), DECLARE_FLEX_ARRAY(9), __TRAILING_OVERLAP(9), TRAILING_OVERLAP(9). iykyk πŸ’«


xoxo, sizeof_field(9) πŸ’– β€” source/version ./include/linux, dated October 2026 πŸŽ€

πŸ“¦ where this page comes from