iowait_sdma_drain(9)
π
iowait_sdma_drain (9) β Kernel API Manual β¨
okay so bestie, welcome to the <pink>kernel API manual</pink> π and today's main character is literally iowait_sdma_drain. no cap, she's doing one job and doing it well.
πΈ NAME πΈ
iowait_sdma_drain β wait for DMAs to drain π«Ά
like... you just sit there and wait for the DMAs to finish. that's the whole vibe check.
β¨ SYNOPSIS β¨
void iowait_sdma_drain (struct iowait *wait );
that's it. that's the signature. void return, one arg, no drama π
π¦ ARGUMENTS π¦
waitβ theiowaitstructure π§ like, hand her the iowait struct and she'll take it from there.
π₯ DESCRIPTION π₯
so basically this function will delay until the iowait sdmas have completed π it's giving "hold my hand and wait for the DMA queue to chill". literally it just blocks/delays until those sdmas are done, periodt. π
no fancy return value, no sneaky side quests described here β just the waiting.
π SEE ALSO π
Kernel file ./drivers/infiniband/hw/hfi1/iowait.h and the whole little friend group π:
iowait_schedule(9)iowait_tid_schedule(9)iowait_sdma_pending(9)iowait_sdma_inc(9)iowait_sdma_add(9)iowait_sdma_dec(9)iowait_pio_drain(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)
./drivers/infiniband/hw/hfi1 β October 2026 π that's the source/version and date bestie, mwah, ily, go drain those DMAs π
β¨π¦
π¦ 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