t3_sge_stop_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– t3_sge_stop_dma(9) πŸ’–

okay bestie, so this one's from the Kernel API Manual, section 9 β€” kernel API land πŸŽ€ β€” and it's a tiny little function with a big job. let's get into it ✨


🌸 NAME 🌸

t3_sge_stop_dma β€” the girlie whose entire personality is Disable SGE DMA engine operation πŸ’…


✨ SYNOPSIS ✨

void t3_sge_stop_dma (struct adapter *adap );

that's it. that's the whole signature. no return value, we're giving nothing back, main character energy only πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adap β€” the adapter πŸ’œ literally just the adapter, that's the assignment, that's the whole assignment.

πŸ”₯ DESCRIPTION πŸ”₯

so the vibe check here is: this function Can be invoked from interrupt context β€” like, for example, from the error handler 😭 it's built different, it works from interrupt context, no cap.

but β€” and this is the important part β€” Note that this function cannot disable the restart of works 😬 because it cannot wait when it's called from interrupt context. it's literally not allowed to sit there and wait, that's not her life.

now the slay part: the works will have no effect anyway, because the doorbells are disabled πŸ”•βœ¨ periodt. so those works are out here showing up dressed for a party that isn't happening.

the driver will call tg3_sge_stop later, from process context 🧚 at which time the works will be stopped if they're still running. so like. she'll handle it later. it's fine. it's giving delegation πŸ’…

⚠️ real talk: if you were expecting this function to fully shut everything down, that is not the gig β€” it can't wait from interrupt context, so it doesn't. the actual stopping happens later in tg3_sge_stop. don't @ me, that's just what the page says 🫢

⭐ SEE ALSO ⭐

the whole squad fr fr, all from Kernel file ./drivers/net/ethernet/chelsio/cxgb3/sge.c 🌈:

like, the entire extended friend group πŸ˜­πŸ’€ go read them, iykyk πŸ“


and that's the page babe πŸ’– it ships out of ./drivers/net/ethernet/chelsio... and it's dated October 2026 β€” so like, future queen behavior 🌸✨ mwah, ily, go disable some DMA πŸ’…πŸŽ€

πŸ“¦ where this page comes from