wait_for_completion_io(9)
π 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:
complete(9)complete_all(9)wait_for_completion(9)wait_for_completion_timeout(9)wait_for_completion_io_timeout(9)wait_for_completion_interruptible(9)wait_for_completion_interruptible_timeout(9)wait_for_completion_killable(9)wait_for_completion_killable_timeout(9)try_wait_for_completion(9)completion_done(9)
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
- 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