for_each_online_cpu_gic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… for_each_online_cpu_gic(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for for_each_online_cpu_gic(9) β€” it’s giving β€œlittle iteration situation with main-character energy” ✨

🌸 NAME 🌸

for_each_online_cpu_gic β€” iterate over online CPUs, access local registers

✨ SYNOPSIS ✨

for_each_online_cpu_gic (cpu , gic_lock );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” an integer variable that holds the current CPU number. literally its whole job πŸ’…
  • gic_lock β€” a pointer to the raw spin lock used as a guard. yes bestie, guard duty πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe: this iterates over the online CPUs & configures the other/redirect register region so you can access each CPU’s GIC local register block. from inside the loop body, you can get at it using read_gic_vo_*() or write_gic_vo_*() accessor functions β€” or their derivatives. that’s the whole flex 🫢

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ source/version check: this cutie comes from ./drivers/irqchip, and it’s dated October 2026 β€” periodt, go read it bestie 🌈⭐

πŸ“¦ where this page comes from