xgbe_wait_f..._tx_complete(9)
π xgbe_wait_f..._tx_complete(9) π
okay bestie, welcome to the Kernel API Manual β yes, that's the manual name, and yes, we're reading a real kernel page together, this is our main character era fr fr π
β¨ NAME β¨
xgbe_wait_for_dma_tx_complete β the little function whose whole job is to wait for DMA to finish up all the pending TX, no cap π«Ά
πΈ SYNOPSIS πΈ
int xgbe_wait_for_dma_tx_complete (struct xgbe_prv_data *pdata );
π¦ ARGUMENTS π¦
pdataβ the driver's private data. that's it, that's the whole flex. it's the driver's own lil stash of private info and we just hand it over π
π₯ DESCRIPTION π₯
so here's the vibe: this function waits for the DMA TX channels to complete all their pending descriptors. literally all of them. the whole point is it ensures no frames are in-flight before we go disable the transmitter β like, we're not about to yank the plug while packets are still mid-send, that would be a mess π
and here's the cute little shortcut: if the link is down, return immediately, because TX will never complete. no point sitting there waiting for something that's literally never gonna happen. king behavior honestly π
β RETURN β
0on success π-ETIMEDOUTon timeout π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/amd/xgbe/xgbe-dev.c β go read it, iykyk π§
and that's the whole page! this gem lives in ./drivers/net/ethernet/amd/xgbe, dated October 2026, and it's brought to you by the Kernel API Manual β mwah, go forth and wait on your DMA responsibly πβ¨
π¦ 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