__cacheline...egin_aligned(9)
π¦ __cacheline...egin_aligned(9) π¦
okay bestie, welcome to the Kernel API Manual corner where weβre reading the page for __cacheline_group_begin_aligned. itβs giving βtiny but important struct alignment momentβ and weβre gonna get into it, no cap. π
πΈ NAME πΈ
__cacheline_group_begin_aligned β declare an aligned group start. periodt.
β¨ SYNOPSIS β¨
__cacheline_group_begin_aligned (GROUP , ... );
π ARGUMENTS π
GROUPβ name of the group. thatβs the groupβs whole identity rn....β optional group alignment. yes bestie, optional, she can vibe with or without it.
π DESCRIPTION π
ok so the following block inside a struct:
__cacheline_group_begin_aligned(grp); field a; field b;
__cacheline_group_end_aligned(grp);
will always be aligned to either the specified alignment or SMP_CACHE_BYTES. thatβs the whole tea. ββ¨
π SEE ALSO π
- Kernel file
./include/linux/cache.h SMP_CACHE_ALIGN(9)__cacheline_group_end_aligned(9)
muah π this little page lives in ./include/linux, dated October 2026, and the footer title is still __cacheline...egin_aligned(9) β source/version and date sign-off, bestie, we love a consistent icon. π«Άπ
π¦ 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