wait_for_co...nterruptible(9)
π€ wait_for_completion_interruptible(9) π€
okay so bestie, welcome to section 9 of the Kernel API Manual π«Ά β the part where we talk about kernel functions, and specifically about this little icon, wait_for_completion_interruptible. she's a sleeper, she's patient, she's lowkey interruptible, and honestly? she ate. periodt. π
β¨ NAME β¨
wait_for_completion_interruptible β waits for completion of a task (w/intr) π
like literally. that's her whole job. she waits. she completes. she's interruptible. no cap.
πΈ SYNOPSIS πΈ
int wait_for_completion_interruptible (struct completion *x );
that's it, that's the whole vibe check. one function, one parameter, one int coming back at you. π
π¦ ARGUMENTS π¦
xβ holds the state of this particular completion. not a general state, not a group state, this particular one. she's specific like that. π
π DESCRIPTION π
so what does she actually do? she waits for completion of a specific task to be signaled. β¨ that's the whole thing. that's the assignment.
and the headline feature, the part that makes her main character energy: she is interruptible. π₯ meaning the wait can get interrupted instead of just sitting there forever with zero self-respect. anyway.
β RETURN β
-ERESTARTSYSβ if interrupted π like, something came in and said "ma'am, we need you elsewhere." it happens to the best of us.0β if completed π the happy ending. the slay. the glow-up. she waited, the task finished, everybody wins. π
π§ SEE ALSO π§
she doesn't travel alone bestie β here's the whole friend group π
Kernel file ./kernel/sched/completion.c
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_timeout(9)wait_for_completion_killable(9)wait_for_completion_killable_timeout(9)try_wait_for_completion(9)completion_done(9)
iykyk π every single one of these is in the completion.c cinematic universe and they all deserve a follow.
and that's the page, bestie π β brought to you by the people of ./kernel/sched, dated October 2026, and shouting right back at you as wait_for_completion_interruptible(9). go forth and wait, interruptibly. mwah π
π¦ 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