offsetofend(9)
okay bestie, welcome to offsetofend(9) from the Kernel API Manual β she's here to report the offset of a struct field within the struct, and she's lowkey iconic for it π
πΈ NAME πΈ
offsetofend β report the offset of a struct field within the struct. Periodt. β¨
π SYNOPSIS π
offsetofend (TYPE , MEMBER );
π ARGUMENTS π
TYPEβ the type of the structure. Like, which struct are we even talking about, bestie? π«ΆMEMBERβ the member within the structure to get the end offset of. That's the specific field whose end offset you're after, no cap. π
π¦ SEE ALSO π¦
- Kernel file:
./include/linux/stddef.h sizeof_field(9)struct_group(9)struct_group_attr(9)struct_group_tagged(9)DECLARE_FLEX_ARRAY(9)__TRAILING_OVERLAP(9)TRAILING_OVERLAP(9)
and that's the whole page, bestie π β source/version: ./include/linux; date: October 2026 β¨
π¦ 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