STRUCT MTK_CQDMA_PCHAN(9)
π NAME π
struct mtk_cqdma_pchan β bestie, this is literally the struct that holds all the info describing a physical channel (PC) π«Ά
(oh and hey, welcome to the Kernel API Manual, we're getting into it β¨)
π SYNOPSIS π
struct mtk_cqdma_pchan {
struct list_head queue;
void __iomem *base;
u32 irq;
refcount_t refcnt;
struct tasklet_struct tasklet;
spinlock_t lock;
};
πΈ Members πΈ
okay so here's the cast of characters, no cap, every single one matters π
queueβ the queue holding the PDs that got issued to this PC. it's giving "to-do list but make it DMA" πbaseβ the mapped register I/O base of this PC. this is where the PC's registers live, periodt πirqβ the IRQ that this PC is using. the interrupt line, the whole vibe check β‘refcntβ tracks how many VCs are using this PC. like a little counter keeping receipts of who's in the building π’taskletβ the tasklet for this PC. yeah, that's the whole description, it's a tasklet, it's iconic π§lockβ the lock that protects against multiple VCs accessing the PC at the same time. lowkey essential, do NOT skip this one π
π SEE ALSO π
- Kernel file
./drivers/dma/mediatek/mtk-cqdma.c struct mtk_cqdma_vdesc(9)struct mtk_cqdma_vchan(9)struct mtk_cqdma_device(9)
and that's the whole page, bestie!! π¦ this one lives in ./drivers/dma/mediatek, it's rockin' the October 2026 timestamp, and it's filed under struct mtk_cqdma_pchan(9) in your fave Kernel API Manual π mwah, go read the actual source now ππ
π¦ 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