iowait_sdma_drain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the iowait structure 🧚 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 πŸ’–:


./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