__sdma_txclean(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __sdma_txclean ✨

okay so bestie, we're in the kernel API manual today, section 9 of the fine manual pages, and this one is called __sdma_txclean β€” it cleans tx of mappings, descp *kmalloc's. yes that asterisk is in the original name line, we don't ask questions, we just slay πŸ’…


🌸 SYNOPSIS 🌸

void __sdma_txclean (struct hfi1_devdata *dd , struct sdma_txreq *tx );

literally a void function with two args, no return value, she just does her thing and leaves ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dd β€” the hfi1_devdata for unmapping. this is the handle she needs so she knows what to unmap πŸ‘‘
  • tx β€” the tx request to clean. this is the little guy getting tidied up 🧚

πŸ’– DESCRIPTION πŸ’–

so the way this works: this is used in the progress routine to clean the tx, or by the ULP to toss an in-process tx build. both of those vibes, one function, iconic 🫢

and the bestie-est part? the code can be called multiple times without issue. no cap. call her once, call her five times, she does not care, she is unbothered 😌

fr fr though, that re-entrancy-ish "call it as many times as you want" note is the whole personality of this one β€” don't skip it πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

she lives in the kernel file ./drivers/infiniband/hw/hfi1/sdma.c, and here's the whole friend group:

like, the entire sdma cast showed up to the group chat πŸ’€ obsessed honestly 🌈


⭐ the sign-off ⭐

okay that's the whole page, mwah πŸ’œ this one ships out of ./drivers/infiniband/hw/hfi1 and the date on the tin is October 2026 β€” go clean your tx, bestie, and remember: multiple calls, no issue, periodt πŸŽ€πŸŒΈβœ¨

πŸ“¦ where this page comes from