wait_for_com...ion_killable(9)
π wait_for_completion_killable π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil cutie from the kernel scheduler girlies β it's literally called wait_for_completion_killable, and yes the header up top gets truncated to wait_for_com...ion_killable(9) like a text message that ran out of characters π but we know her full name, she's iconic.
πΈ NAME πΈ
wait_for_completion_killable β waits for completion of a task (killable) π«Ά
β¨ SYNOPSIS β¨
int wait_for_completion_killable (struct completion *x );
that's it, that's the whole vibe check π
π ARGUMENTS π
xβ holds the state of this particular completion. she's the main character of this call, no cap π
π¦ DESCRIPTION π¦
so like, this function waits to be signaled for completion of a specific task. that's the whole job, she waits π§
and here's the slay part: it can be interrupted by a kill signal π₯ so if something goes "actually no, we're done here," she respectfully dips. not me being interruptible, couldn't be her β¨
π RETURN π
-ERESTARTSYSif interrupted π0if completed β
two outcomes, both valid, periodt π
π SEE ALSO π
all the sisters live in the kernel file ./kernel/sched/completion.c β go say hi π«Ά
complete(9)complete_all(9)wait_for_completion(9)wait_for_completion_timeout(9)wait_for_completion_io(9)wait_for_completion_io_timeout(9)wait_for_completion_interruptible(9)wait_for_completion_interruptible_timeout(9)wait_for_completion_killable_timeout(9)try_wait_for_completion(9)completion_done(9)
like a whole friend group honestly, iykyk π
lowkey a reminder that -ERESTARTSYS means a kill signal showed up and interrupted the wait β so handle that return value, bestie, don't just ignore her π
okay that's the page!! sourced from ./kernel/sched, dated October 2026, and it's the wait_for_completion_killable(9) girl herself β ily, go wait on something killable πβ¨π
π¦ 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