wait_for_com...n_io_timeout(9)
π
wait_for_completion_io_timeout(9) β Kernel API Manual π
okay bestie, this is the Kernel API Manual page for wait_for_completion_io_timeout. The header keeps it abbreviated as wait_for_com...n_io_timeout(9) β iconic truncation, honestly π
πΈ NAME πΈ
wait_for_completion_io_timeout β the NAME line says wait_for_completion_io_timeout - - waits for completion of a task (w/timeout) π
β¨ SYNOPSIS β¨
unsigned long wait_for_completion_io_timeout (struct completion *x ,
unsigned long timeout );
π«Ά ARGUMENTS π«Ά
xβ holds the state of this particular completion πtimeoutβ timeout value injiffiesβ°
π DESCRIPTION π
So hereβs the vibe: this waits for either a completion of a specific task to be signaled or for a specified timeout to expire. The timeout is in jiffies β thatβs the unit, bestie β¨
It is not interruptible β no tap-outs, periodt π
The caller is accounted as waiting for IO (which traditionally means blkio only). Thatβs the accounting detail, iykyk π¦
π RETURN π
0β if timed out π- positive (at least
1, or number ofjiffiesleft till timeout) β if completed ππ
π¦ SEE ALSO π¦
Kernel file ./kernel/sched/completion.c β go peek, bestie:
complete(9)complete_all(9)wait_for_completion(9)wait_for_completion_timeout(9)wait_for_completion_io(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 page, bestie β source/version spot is ./kernel/sched, dated October 2026, and the footer page tag is wait_for_com...n_io_timeout(9). 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