TRAILING_OVERLAP(9)
okay bestie, welcome to TRAILING_OVERLAP(9) from the Kernel API Manual β this is the kernel API situation where a flexible-array member overlaps with trailing members, and we're gonna read it together π
β¨
π NAME π
TRAILING_OVERLAP β overlap a flexible-array member with trailing members. That's it, that's the whole NAME-section serve.
πΈ SYNOPSIS πΈ
TRAILING_OVERLAP (TYPE , NAME , FAM , MEMBERS );
π¦ ARGUMENTS π¦
TYPEβ the flexible structure type name, including thestructkeyword. Yes, saystructout loud, bestie.NAMEβ the name for a variable to define. Name your variable, name your vibe.FAMβ the flexible-array member withinTYPE. Main character energy, fr fr.MEMBERSβ trailing overlapping members. The overlap crew that comes after.
π DESCRIPTION π
It creates a union between a flexible-array member (FAM) in a struct and a set of additional members that would otherwise follow it. So the FAM gets a union situation with the extra members β overlapping instead of just trailing behind. No cap, that's the whole description.
π₯ SEE ALSO π₯
Kernel file: ./include/linux/stddef.h
sizeof_field(9)offsetofend(9)struct_group(9)struct_group_attr(9)struct_group_tagged(9)DECLARE_FLEX_ARRAY(9)__TRAILING_OVERLAP(9)
source: ./include/linux Β· date: October 2026 Β· page: TRAILING_OVERLAP(9) β mwah, go overlap responsibly bestie π«Άπ
π¦ 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