cpus_peek_for_pending_ipi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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