STRUCT ATDMA_SG(9)
π¦ 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:
struct at_desc(9)enum atc_status(9)struct at_dma_chan(9)struct at_dma(9)atc_chan_is_enabled(9)atc_chan_is_paused(9)atc_chan_is_cyclic(9)set_lli_eol(9)struct at_dma_platform_data(9)struct at_dma_slave(9)atc_dostart(9)atc_calc_bytes_left(9)atc_get_llis_residue(9)atc_get_residue(9)atc_handle_error(9)atc_prep_dma_interleaved(9)atc_prep_dma_memcpy(9)atc_prep_dma_memset(9)atc_prep_slave_sg(9)atc_prep_dma_cyclic(9)atc_tx_status(9)atc_alloc_chan_resources(9)atc_free_chan_resources(9)at_dma_off(9)
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
- 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