STRUCT XDMA_CHAN(9)
π struct xdma_chan(9) π
okay bestie, welcome to the Kernel API Manual π β this is the page for the driver-specific DMA channel structure, and it's giving "kernel struct but make it cute." Let's get into it.
β¨ NAME β¨
struct xdma_chan β driver specific DMA channel structure. That's the whole name, no cap π
π¦ SYNOPSIS π¦
here's the struct in all its glory, copied exactly so nobody comes for me:
struct xdma_chan {
struct virt_dma_chan vchan;
void *xdev_hdl;
u32 base;
struct dma_pool *desc_pool;
bool busy;
enum dma_transfer_direction dir;
struct dma_slave_config cfg;
u32 irq;
struct completion last_interrupt;
bool stop_requested;
};
π Members π
okay so every field on this struct has a job, and we're respecting all of them:
vchanβ virtual channel β¨xdev_hdlβ pointer to DMA device structure π«Άbaseβ offset of channel registersdesc_poolβ descriptor pool πbusyβ busy flag of the channeldirβ transferring direction of the channel π¦cfgβ transferring config of the channelirqβ IRQ assigned to the channel β‘last_interruptβ task for comppleting last interrupt πstop_requestedβ stop request flag
lowkey, if you're cross-checking field names, this is the moment β the struct is the main character here π
π SEE ALSO π
bestie, the kernel file is ./drivers/dma/xilinx/xdma.c, and these are the related pages you're gonna want:
struct xdma_desc_block(9)struct xdma_desc(9)struct xdma_device(9)xdma_link_sg_desc_blocks(9)xdma_link_cyclic_desc_blocks(9)xdma_channel_init(9)xdma_free_desc(9)xdma_alloc_desc(9)xdma_xfer_start(9)xdma_xfer_stop(9)xdma_alloc_channels(9)xdma_issue_pending(9)xdma_terminate_all(9)xdma_synchronize(9)xdma_fill_descs(9)xdma_prep_device_sg(9)xdma_prep_dma_cyclic(9)xdma_prep_interleaved_dma(9)xdma_device_config(9)xdma_free_chan_resources(9)xdma_alloc_chan_resources(9)xdma_channel_isr(9)xdma_irq_fini(9)xdma_set_vector_reg(9)xdma_irq_init(9)xdma_disable_user_irq(9)xdma_enable_user_irq(9)xdma_get_user_irq(9)xdma_remove(9)xdma_probe(9)
xoxo π β this page came from ./drivers/dma/xilinx, dated October 2026, and it's the struct xdma_chan(9) page. bye bestie π«Ά
π¦ 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