STRUCT ATDMA_SG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ STRUCT ATDMA_SG πŸ’…

okay so bestie, buckle up β€” this is a page from the Kernel API Manual, and it's about struct atdma_sg, aka the atdma scatter gather entry. that's the whole vibe. one lil struct, three lil fields, doing the absolute most in the DMA world ✨


🌸 SYNOPSIS 🌸

like, here's literally the shape of it, no cap:

struct atdma_sg {
    unsigned int len;
    struct at_lli *lli;
    dma_addr_t lli_phys;
 };

that's it. that's the struct. iconic behavior honestly πŸŽ€


πŸ’– Members πŸ’–

  • len β€” the length of the current Linked List Item. yes girl, it's measuring the LLI πŸ’…
  • lli β€” the linked list item that gets passed to the DMA controller. main character energy, fr fr πŸ”₯
  • lli_phys β€” the physical address of the LLI. the ~physical~ address, iykyk πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the group chat roll call, and everyone showed up. the kernel file ./drivers/dma/at_hdmac.c, plus:

like every single one of them. not me listing all 24 πŸ’€ go read them, they're all slaying in their own way 🫢


ngl bestie, this page lives in ./drivers/dma and it's from October 2026 β€” shoutout to the Kernel API Manual for keeping it cute πŸ˜­πŸ’œ bye bestie, go touch some linked list items πŸ§šβ€β™€οΈβ­
πŸ“¦ where this page comes from