STRUCT D40_LLI_POOL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct d40_lli_pool(9) πŸ’–

okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is struct d40_lli_pool β€” literally the structure for keeping LLIs in memory. yes. that's the whole vibe. it's not glamorous but it is iconic, and you're gonna understand it fr fr. πŸŽ€


✨ SYNOPSIS ✨

struct d40_lli_pool {
    void *base;
    int size;
    dma_addr_t dma_addr;
    u8 pre_alloc_lli[3 * sizeof(struct d40_phy_lli)];
};

like… look at her. four members. no notes. πŸ’…


🌸 Members 🌸

  • base β€” a pointer to the memory area that gets used when the pre_alloc_lli's are not large enough β€” IE bigger than the most common case, which is 1 dst and 1 src. and it's NULL if pre_alloc_lli is what's being used. so like, she's the backup plan, and she knows it. 🫢
  • size β€” the size in bytes of the memory at base, or the size of pre_alloc_lli. either way, she's measuring. πŸ“
  • dma_addr β€” the DMA address, if mapped. that's it. that's the whole member. conditional queen. ✨
  • pre_alloc_lli β€” the pre allocated area for the most common case of transfers: one buffer to one buffer. the everyday workhorse. the girl who shows up and does the job while everyone else is still getting ready. πŸ’€πŸ”₯
ngl the whole point here is the vibe check between "small, already there, no drama" (pre_alloc_lli) and "okay we need more room, allocate" (base). she's built for the common case and she ate. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/dma/ste_dma40.c
  • struct stedma40_platform_data(9)
  • enum d40_command(9)
  • struct d40_interrupt_lookup(9)
  • struct d40_reg_val(9)
  • struct d40_desc(9)
  • struct d40_lcla_pool(9)
  • struct d40_phy_res(9)
  • struct d40_chan(9)
  • struct d40_gen_dmac(9)
  • struct d40_base(9)

like, go read her friends too, they're all lowkey connected and iykyk πŸ’œ


and that's the whole page bestie!! go forth and slay ✨ this little gem lives in ./drivers/dma and the version vibes are dated October 2026, so you know she's fresh πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from