stm32_spi_can_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stm32_spi_can_dma(9) πŸ’…

Okay bestie, welcome to the Kernel API Manual β€” this one's a little kernel function called stm32_spi_can_dma, and honestly? It's giving "tiny gatekeeper with one job." Let's get into it πŸŽ€


✨ NAME ✨

stm32_spi_can_dma β€” literally just: determine if the transfer is eligible for DMA use πŸ’«


🌸 SYNOPSIS 🌸

bool stm32_spi_can_dma (struct spi_controller *ctrl , struct spi_device
*spi_dev , struct spi_transfer *transfer );

It returns a bool, bestie β€” so it's a yes-or-no girlie, no in-between πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctrl β€” the controller interface πŸ‘‘ (the big boss of the SPI situation)
  • spi_dev β€” pointer to the spi device πŸŽ€ (your actual lil device)
  • transfer β€” pointer to spi transfer 🧚 (the thing being moved, obviously)

πŸ’– DESCRIPTION πŸ’–

So here's the tea, fr fr:

If the driver has a fifo and the current transfer size is greater than the fifo size, use DMA. Otherwise, use DMA for a transfer longer than the defined DMA min bytes. No cap, that's the whole vibe check πŸ”₯

Lowkey a two-branch decision and it ate. Periodt. ⭐

🌈 SEE ALSO 🌈

Kernel file ./drivers/spi/spi-stm32.c β€” and bestie, the friend group is huge, we're listing every single one 🫢:

Like I said. Enormous friend group. iykyk πŸ’€βœ¨


That's the whole page, bestie β€” she's short, she's sweet, and she knows exactly what she's about πŸ’œ

Sign-off time πŸŽ€: this lil beauty lives in ./drivers/spi, dated October 2026, and the whole thing is the stm32_spi_can_dma(9) page, manual and all. Slay πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from