STRUCT CPU_RMAP(9)
β¨ NAME β¨
Okay bestie, this is the Kernel API Manual, section 9, and the main character is struct cpu_rmap β aka the CPU affinity reverse-map π.
π¦ SYNOPSIS π¦
struct cpu_rmap {
struct kref refcount;
u16 size;
void **obj;
struct {
u16 index;
u16 dist;
} near[];
};
π Members π
refcountβ thekreffor the object, keeping its little lifecycle situation under control πsizeβ number of objects to be reverse-mapped, periodtobjβ pointer to the array of object pointers, slaynearβ for each CPU, the index and distance to the nearest object, based on affinity masks π«Ά
π SEE ALSO π
- Kernel file
./include/linux/cpu_rmap.h alloc_irq_cpu_rmap(9)
This iconic little page is brought to you by ./include/linux, dated October 2026, and yeah β struct cpu_rmap(9) really said main character energy π
β¨
π¦ 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