libeth_cache...truct_assert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–


🫢 source/version: ./include/net/libeth Β· date: October 2026 Β· k bye bestie, slay responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from