iowait_pio_drain(9)
π iowait_pio_drain(9) β like, the Kernel API Manual page, bestie β¨
okay so this is iowait_pio_drain(9) from the Kernel API Manual, and honestly? it's giving "small function, big responsibility" π
πΈ NAME πΈ
iowait_pio_drain β wait for pios to drain π§
β¨ SYNOPSIS β¨
void iowait_pio_drain (struct iowait *wait );
that's it. that's the whole vibe. one function, one pointer, zero drama π«Ά
π¦ ARGUMENTS π¦
waitβ theiowaitstructure, bestie. that's the one you're handing over π
π₯ DESCRIPTION π₯
okay so real talk: this one delays until the iowait pios have completed. that's the whole thing. it just... waits π like it will literally not move on until those pios are done, periodt. no cap, that's the entire behavior β delay, pios complete, we're free π
it's not doing anything cute or extra, it's just sitting there with main character energy until the pios are drained π
π SEE ALSO π
this is the part where the kernel file shows up, so let's give it its flowers πΈ β Kernel file ./drivers/infiniband/hw/hfi1/iowait.h β¨
and then the full squad, no one left behind π«Ά:
iowait_schedule(9)iowait_tid_schedule(9)iowait_sdma_drain(9)iowait_sdma_pending(9)iowait_sdma_inc(9)iowait_sdma_add(9)iowait_sdma_dec(9)iowait_pio_pending(9)iowait_pio_inc(9)iowait_pio_dec(9)iowait_drain_wakeup(9)iowait_get_txhead(9)iowait_queue(9)iowait_starve_clear(9)iowait_packet_queued(9)iowait_get_tid_work(9)iowait_get_ib_work(9)iowait_ioww_to_iow(9)
iykyk π
and that's the page!! sign-off time: it lives in ./drivers/infiniband/hw/hfi1, dated October 2026, and yes it's still called iowait_pio_drain(9) β iconic, we stan π§ββοΈβπ
π¦ 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