PERCPU_SECTION(9)
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
- 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