libeth_cache...truct_assert(9)
π
libeth_cacheline_struct_assert(9) π
okay so welcome to the Kernel API Manual, bestie β this one is giving βmake sure the CL-based struct size is expected,β and honestly? iconic.
β¨ NAME β¨
libeth_cacheline_struct_assert β make sure CL-based struct size is expected. periodt.
πΈ SYNOPSIS πΈ
libeth_cacheline_struct_assert (type , ... );
π ARGUMENTS π
typeβ type of the struct. like, the structβs type, obviously π...β from 1 to 3 CL group sizes (read-mostly, read-write, cold). feed it the group sizes, bestie π«Ά
π¦ DESCRIPTION π¦
When a struct contains several CL groups, itβs difficult to predict its size on different architectures. The macro instead takes sizes of all of the groups the structure contains and generates the final struct size. so yeah, no cap β it does the size math so you donβt have to guess across architectures. slay π
π SEE ALSO π
- Kernel file
./include/net/libeth/cache.h libeth_cacheline_group_assert(9)libeth_cacheline_set_assert(9)
π«Ά source/version: ./include/net/libeth Β· date: October 2026 Β· k bye bestie, slay responsibly π
β¨
π¦ 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