wait_for_completion_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wait_for_completion_io πŸ’–

okay bestie, we're in the Kernel API Manual and today's main character is wait_for_completion_io β€” no cap, it's the "wait for a task to finish" call, and it's giving very patient bestie energy. 🫢


✨ NAME ✨

wait_for_completion_io - - waits for completion of a task. literally the "bestie, are you done yet?" kernel call. πŸ’…

πŸ’… SYNOPSIS πŸ’…

void wait_for_completion_io (struct completion *x );

πŸŽ€ ARGUMENTS πŸŽ€

  • x β€” holds the state of this particular completion. it's the little state-holder for this exact completion, iykyk. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

so this one waits to be signaled for completion of a specific task. that's the whole assignment. ✨

it is NOT interruptible, and there is no timeout β€” not me emphasizing that, but bestie, fr fr, those are the rules. 😭

the caller is accounted as waiting for IO (which traditionally means blkio only). so yes, it's giving IO-wait main character energy, but specifically the traditional blkio-only kind. πŸ’…

🌈 SEE ALSO 🌈

check the kernel file ./kernel/sched/completion.c and these iconic besties:


that's the whole vibe check πŸ’– from the Kernel API Manual, source/version ./kernel/sched, dated October 2026 β€” wait_for_completion_io(9) signing off πŸ«ΆπŸ’…

πŸ“¦ where this page comes from