wait_for_co...nterruptible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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

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