STRUCT STM32_TIMERS_DMA(9)
π struct stm32_timers_dma β NAME π
okay so bestie, welcome to the Kernel API Manual β¨ β this page is literally all about struct stm32_timers_dma, which is the STM32 timer DMA handling situation. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
no cap, here's the whole struct, verbatim, don't @ me:
struct stm32_timers_dma {
struct completion completion;
phys_addr_t phys_base;
struct mutex lock;
struct dma_chan *chan;
struct dma_chan *chans[STM32_TIMERS_MAX_DMAS];
};
π¦ Members π¦
breaking it down field by field, iykyk π
completionβ this is astruct completion, and it's giving "end of DMA transfer completion" energy. when the DMA transfer wraps up, this is the thing that says so π«Άphys_baseβ aphys_addr_tholding the control registers physical base address. literally where the registers live in physical memory, iconic πlockβ astruct mutexwhose whole job is to protect DMA access. main character energy but make it thread-safe π₯chanβ astruct dma_chan *pointing at the DMA channel actually in use rn πchansβ astruct dma_chan *array,chans[STM32_TIMERS_MAX_DMAS], holding all the DMA channels available for this timer instance. a little squad of channels, obsessed π
π SEE ALSO π
go touch grass in the kernel tree bestie, specifically:
- Kernel file
./include/linux/mfd/stm32-timers.hβ
and that's a wrap on the struct stm32_timers_dma(9) page π§ β brought to you by ./include/linux/mfd, dated October 2026, from your fave manual, the Kernel API Manual. stay slay, stay compiled π
π¦ 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