STRUCT CPU_RMAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the kref for the object, keeping its little lifecycle situation under control πŸ’…
  • size β€” number of objects to be reverse-mapped, periodt
  • obj β€” pointer to the array of object pointers, slay
  • near β€” for each CPU, the index and distance to the nearest object, based on affinity masks 🫢

🌈 SEE ALSO 🌈


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