PERCPU_SECTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

PERCPU_SECTION(9) πŸ’…

okay so bestie, this is the Kernel API Manual page for PERCPU_SECTION β€” and it’s lowkey iconic for such a tiny macro. πŸŽ€


✨ NAME ✨

PERCPU_SECTION β€” define output section for percpu area πŸ¦‹


🌸 SYNOPSIS 🌸

PERCPU_SECTION (cacheline );

πŸŽ€ ARGUMENTS πŸŽ€

  • cacheline β€” cacheline size. that’s the arg, bestie πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So PERCPU_SECTION is a macro, and it expands to the output section for the percpu area. that’s literally the whole glow-up ✨

The cacheline value is used to align subsections so you avoid false cacheline sharing between subsections for different purposes. no cap, that’s the reason it’s there πŸ’…

lowkey important: cacheline is used to align subsections to avoid false cacheline sharing between subsections for different purposes. periodt 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./include/asm-generic/vmlinux.lds.h β€” go peek, iykyk πŸ‘€
  • PERCPU_INPUT(9) β€” the related page, bestie 🧚

mwah πŸ’‹ β€” source/version: ./include/asm-generic, date: October 2026, and this is PERCPU_SECTION(9) signing off πŸ«ΆπŸ’–

πŸ“¦ where this page comes from