stmmac_setup_dma_desc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to stmmac_setup_dma_desc(9) from the Kernel API Manual ✨ this is the page for generating a dma_conf and allocating a DMA queue, and we're keeping every single detail, no cap πŸ’–

πŸ’– NAME πŸ’–

stmmac_setup_dma_desc β€” Generate a dma_conf and allocate DMA queue πŸŽ€

✨ SYNOPSIS ✨

bestie, here's the signature β€” copy it exactly, or the compiler will absolutely side-eye you 😭

struct stmmac_dma_conf * stmmac_setup_dma_desc (struct stmmac_priv *priv
, unsigned int mtu );

🫢 ARGUMENTS 🫢

two arguments, and they both matter:

  • priv β€” driver private structure; it's the driver's own private struct, iykyk.
  • mtu β€” MTU to setup the dma queue and buf with; this is the MTU used to setup the DMA queue and buf.

🌸 DESCRIPTION 🌸

okay so what it does: allocate and generate a dma_conf based on the provided MTU. then it allocates the Tx/Rx DMA queue and inits them. that's the whole vibe β€” DMA queue and buf setup for the MTU, no extras.

return value: the dma_conf allocated struct on success and an appropriate ERR_PTR on failure. so on success you get the allocated dma_conf struct; on failure you get an appropriate ERR_PTR, periodt πŸ’…

🌈 SEE ALSO 🌈

the whole extended stmmac family is linked here, bestie. every single one, no skips 🫢:


that's the whole page, bestie πŸ’– source/version shoutout: ./drivers/net/ethernet/stmicro..., and the date is October 2026. stmmac_setup_dma_desc(9) signing off, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from