STRUCT XDMA_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct xdma_device β€” bestie, it's the DMA device structure itself, the main character of the whole show πŸ‘‘

So this is the manual page for struct xdma_device(9) from the Kernel API Manual β€” yeah, we're in kernel-land now, and it's giving big "I read the source, actually" energy πŸŽ€


✨ SYNOPSIS ✨

ok so here's the whole struct, literally every field, no skipping, no cap:

struct xdma_device {
    struct platform_device  *pdev;
    struct dma_device       dma_dev;
    struct regmap           *rmap;
    struct xdma_chan        *h2c_chans;
    struct xdma_chan        *c2h_chans;
    u32 h2c_chan_num;
    u32 c2h_chan_num;
    u32 irq_start;
    u32 irq_num;
    u32 status;
 };

she's got ten fields and every single one is slaying in her own little lane πŸ’–


🌸 Members 🌸

okay time for the field-by-field vibe check, let's go πŸ¦‹

  • pdev β€” the platform device pointer, aka her link back to the platform device she belongs to
  • dma_dev β€” the DMA device structure, the whole reason she exists tbh
  • rmap β€” the MMIO regmap for the DMA registers, where all the register poking happens ✨
  • h2c_chans β€” Host to Card channels, exactly what it sounds like, going one direction hun
  • c2h_chans β€” Card to Host channels, the other direction, we're nothing if not symmetrical πŸ’…
  • h2c_chan_num β€” number of H2C channels, like, the count
  • c2h_chan_num β€” number of C2H channels, also a count, also iconic
  • irq_start β€” the start IRQ assigned to the device, where the interrupt party begins πŸŽ‰
  • irq_num β€” number of IRQ assigned to device, i.e. how many interrupts she gets
  • status β€” initialization status, the "are we okay or are we not okay" field 😭

🫢 SEE ALSO 🫢

all her friends!! the whole friend group lives in the kernel file ./drivers/dma/xilinx/xdma.c and honestly the roster ate πŸ”₯

like, go read them, they're all right there, iykyk πŸ‘‘


ngl there are no warnings on this one β€” it's just a struct. but fr fr, use the real field types and don't go inventing your own, okay? πŸ“

mwah πŸ’‹ that's the page!! sourced straight from ./drivers/dma/xilinx, dated October 2026, and yes she's still struct xdma_device(9) β€” the one and only. slay, bye βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from