每个 CPU 的变量
#define DEFINE_PER_CPU(type, name) \
DEFINE_PER_CPU_SECTION(type, name, "")DEFINE_PER_CPU(int, per_cpu_n)#define DEFINE_PER_CPU_SECTION(type, name, sec) \
__PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \
__typeof__(type) name#define __PCPU_ATTRS(sec) \
__percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \
PER_CPU_ATTRIBUTES#define PER_CPU_BASE_SECTION ".data..percpu"__attribute__((section(".data..percpu"))) int per_cpu_nLast updated