__alloc_dma...sc_resources(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Hey bestie, welcome to the Kernel API Manual β€” today’s main character is __alloc_dma...sc_resources(9), and the actual function is __alloc_dma_rx_desc_resources β€” alloc RX resources (per queue). Slay. ✨


✨ SYNOPSIS ✨

int __alloc_dma_rx_desc_resources (struct stmmac_priv *priv , struct
       stmmac_dma_conf *dma_conf , u32 queue );

πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” private structure 🫢
  • dma_conf β€” structure to take the dma data πŸ’–
  • queue β€” RX queue index πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the vibe: depending on which descriptor can be used β€” extend or basic β€” this function allocates the resources for the TX and RX paths. In case of reception, for example, it pre-allocated the RX socket buffer in order to allow the zero-copy mechanism. Literally iconic resource behavior, no cap. πŸ”₯πŸ¦‹


🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/stmicro/stmmac/stmmac_main.c πŸ‘‘

The whole squad, bestie:


Mwah πŸ’‹ this page’s footer energy is: source/version ./drivers/net/ethernet/stmicro..., dated October 2026, for __alloc_dma...sc_resources(9) β€” bye bestie! πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from