stm32_dma_is_current_sg(9)
π NAME π
okay so this is the Kernel API Manual page for stm32_dma_is_current_sg(9) β and its whole job is to check that the expected sg_req is currently transferred. that's it, that's the mission π«Ά
β¨ SYNOPSIS β¨
bool stm32_dma_is_current_sg (struct stm32_dma_chan *chan );
π ARGUMENTS π
chanβ the dma channel, bestie. that's the one you pass in.
π¦ DESCRIPTION π¦
This function is called when IRQs are disabled, and it checks that the hardware has not switched on the next transfer in double buffer mode. The test is done by comparing the next_sg memory address with the hardware related register (based on the CT bit value).
Returns true if the expected current transfer is still running or double buffer mode is not activated.
ngl the vibe check here is simple: are we still on the transfer we expected, or is double buffer mode just chilling off? π
π SEE ALSO π
- Kernel file
./drivers/dma/stm32/stm32-dma.c struct stm32_dma_cfg(9)struct stm32_dma_mdma_config(9)
and that's the whole page, babe π
β source/version ./drivers/dma/stm32, dated October 2026, for stm32_dma_is_current_sg(9). periodt πβ¨
π¦ 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