for_each_online_cpu_gic(9)
π 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 π
- Kernel file
./drivers/irqchip/irq-mips-gic.c gic_irq_lock_cluster(9)
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
- 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