reclaim_completed_tx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 reclaim_completed_tx(9) 🌸

okay bestie, welcome to the Kernel API Manual πŸ’… this one's from the Linux kernel docs and it's lowkey a little function with a big job. let's get into it ✨


πŸ’– NAME πŸ’–

reclaim_completed_tx β€” the girlboss that reclaims completed TX descriptors πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void reclaim_completed_tx (struct adapter *adapter , struct sge_txq *tq
, bool unmap );

that's it. that's the whole signature. three args, no notes πŸ’…


🌈 ARGUMENTS 🌈

  • adapter β€” the adapter, obviously. the main character of the whole hardware situation πŸ‘‘
  • tq β€” the TX queue we're pulling the completed descriptors out of 🧚
  • unmap β€” a bool that tells us whether the buffers should be unmapped for DMA πŸ”₯

⭐ DESCRIPTION ⭐

so here's the tea β˜•: this function reclaims TX descriptors that the SGE has indicated it has already processed, and it frees the associated buffers if possible 🫢

⚠️ important caveat before you run off: it's called with the TX queue locked. that's not a suggestion, that's the whole vibe check. don't come for this function without holding the lock, fr fr 😭

πŸ’œ SEE ALSO πŸ’œ

the source lives at Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c β€” that's the address, bestie πŸ“

and now the whole friend group, in order, no skips, no cuts πŸ’«:


and that's the page, bestie πŸŽ€ sign-off time: this was pulled from the source at ./drivers/net/ethernet/chelsio..., dated October 2026 β€” iconic, timeless, we love to see it πŸ’–βœ¨

πŸ“¦ where this page comes from