cpus_peek_for_pending_ipi(9)
β¨ cpus_peek_for_pending_ipi(9) β¨
okay so bestie, welcome to the Kernel API Manual π
β today's main character is cpus_peek_for_pending_ipi(9), and honestly? she's a little gossip girl for CPU interrupts. let's get into it π
π NAME π
cpus_peek_for_pending_ipi β check for pending IPI for CPUs π¦
πΈ SYNOPSIS πΈ
bool cpus_peek_for_pending_ipi (const struct cpumask *mask );
π ARGUMENTS π
maskβ the CPU mask for the CPUs to check π like, this is the guest list, and we're seeing who's got something waiting for them.
β¨ DESCRIPTION β¨
so what she does is: she walks through the mask π and checks if there are any pending IPIs scheduled, for any of the CPUs in the mask. that's it, that's the vibe π
but bestie, listen β it does not guarantee correctness, because it only provides a racy snapshot π so like, it's giving "peek through the blinds" energy, not "certified official record" energy. no cap. treat what you see as a moment in time, not the whole truth π«Ά
β RETURN β
true if there is a pending IPI scheduled π and false otherwise. simple as that, periodt.
π SEE ALSO π
Kernel file ./kernel/smp.c and her whole friend group:
csd_lock_is_stuck(9)generic_smp_call_function_single_interrupt(9)__flush_smp_call_function_queue(9)flush_smp_call_function_queue(9)smp_call_function_single(9)smp_call_function_single_async(9)smp_call_function_any(9)smp_call_function_many(9)smp_call_function(9)on_each_cpu_cond_mask(9)kick_all_cpus_sync(9)wake_up_all_idle_cpus(9)struct smp_call_on_cpu_struct(9)smp_call_on_cpu(9)
ngl, if you're deep in ./kernel/smp.c lore, you already know π iykyk.
okay that's the whole page, ily, go read some kernel source π
source: ./kernel Β· version: Kernel API Manual Β· dated: October 2026 β mwah, catch you on the next manpage π§ββοΈπ
π¦ 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