STRUCT AT_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct at_desc(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so welcome to the struct at_desc(9) page!! it's giving "software descriptor" energy and honestly? it's iconic. this is the kernel API manual entry, so grab a strawberry drink πŸ“ and let's get into it ✨


✨ NAME ✨

struct at_desc β€” the software descriptor. that's it, that's the vibe πŸ’–


🌸 SYNOPSIS 🌸

struct at_desc {
    struct virt_dma_desc vd;
    struct at_dma_chan *atchan;
    size_t total_len;
    unsigned int                    sglen;
    size_t boundary;
    size_t dst_hole;
    size_t src_hole;
    bool memset_buffer;
    dma_addr_t memset_paddr;
    int *memset_vaddr;
    struct atdma_sg                 sg[];
 };

look at her. main character struct fr fr πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • vd β€” pointer to the virtual dma descriptor. lowkey the VIP pass of this struct πŸ’…
  • atchan β€” pointer to the atmel dma channel. yup, that's the atmel one 🧚
  • total_len β€” total transaction byte count. the whole entire size, no cap.
  • sglen β€” number of sg entries. count 'em πŸ”₯
  • boundary β€” number of transfers to perform before the automatic address increment operation. yes bestie, it's a before thing 🫢
  • dst_hole β€” value to add to the destination address when the boundary has been reached. once you hit the boundary, this gets added πŸ’œ
  • src_hole β€” value to add to the source address when the boundary has been reached. same deal, but source side ⭐
  • memset_buffer β€” buffer used for the memset operation. the memset one, obviously πŸ™ˆ
  • memset_paddr β€” physical address of the buffer used for the memset operation. the physical address of it πŸŽ€
  • memset_vaddr β€” virtual address of the buffer used for the memset operation. and here's the virtual address of that same buffer 🌈
  • sg β€” array of sgs. literally an array of them 😭

πŸ” SEE ALSO πŸ”

okay so there are SO many siblings, here's the whole family, no skips:


go read them all bestie, iykwim 😌

and that's the page!! mwah πŸ’‹ this one ships from ./drivers/dma, dated October 2026 β€” signed, sealed, struct at_desc(9) 🫢✨

πŸ“¦ where this page comes from