gic_irq_lock_cluster(9)
π gic_irq_lock_cluster π
okay so bestie, welcome to the Kernel API Manual page for gic_irq_lock_cluster(9) β yes that (9) means it's a kernel function, we're in the big leagues now β¨
π NAME π
gic_irq_lock_cluster β locks redirect block access to an IRQ's cluster, no cap ππ¦
β¨ SYNOPSIS β¨
bool gic_irq_lock_cluster (struct irq_data *d );
like... that's it. that's the whole vibe. one argument, one bool back π«Ά
πΈ ARGUMENTS πΈ
dβ astruct irq_datathat corresponds to the interrupt we're interested in π« literally the interrupt you care about, handed over in struct form.
π DESCRIPTION π
okay so here's the tea β β this function locks redirect register block access to the global register block of the GIC, and it does that within the remote cluster that the IRQ corresponding to d is affine to. and it returns true once that redirect block setup & locking has been performed β
π₯
but wait, there's a plot twist π β if d is affine to the local cluster, then no locking is performed at all, and this function returns false. that false is basically a little note to the caller going "hey bestie, just access the local cluster's registers directly, you don't need the overhead of indirection through the redirect block" π
so in summary (iykyk):
- if this function returns
trueβ the caller should access GIC registers using the redirect register block accessors, and then callmips_cm_unlock_otherwhen done π«‘ don't forget the unlock, that's the whole point of the lock, fr fr - if this function returns
falseβ the caller should trivially access GIC registers in the local cluster, easy peasy π
and the return value one more time for the people in the back: returns true if locking performed, else false β
π no cap:truemeans you're going through the redirect block and you owe amips_cm_unlock_otherafterwards.falsemeans local registers, zero indirection, go nuts.
π¦ SEE ALSO π¦
- Kernel file
./drivers/irqchip/irq-mips-gic.cβ go read the source, it's giving main character energy πβ¨ for_each_online_cpu_gic(9)β another icon, check her out π
and that's the page!! π mwaaah π this little gem lives under ./drivers/irqchip and the version/date stamp on it is October 2026 β so yeah, future-dated and still slaying ππ§β¨ periodt.
π¦ 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