devm_spi_of...est_dma_chan(9)
π devm_spi_offload_rx_stream_request_dma_chan β bestie's guide to the RX stream DMA channel
okay so this is a page from the Kernel API Manual (yes, the whole manual, not just this one function, we're being fancy β¨) and it's all about grabbing the DMA channel for the RX stream. let's get into it π«Ά
πΈ NAME πΈ
devm_spi_offload_rx_stream_request_dma_chan β literally just gets you the DMA channel info for the RX stream. that's the whole vibe π
β¨ SYNOPSIS β¨
struct dma_chan * devm_spi_offload_rx_stream_request_dma_chan (struct
device *dev , struct spi_offload *offload );
like, look at that signature. iconic. π
π¦ ARGUMENTS π¦
devβ the Device, bestie. it's there for devm purposes (you know, the managed-resource girlies π).offloadβ the Offload instance. the main character of this whole operation ngl π
π DESCRIPTION π
so this is the DMA channel that will receive data from transfers that use the SPI_OFFLOAD_XFER_RX_STREAM offload flag. that's it, that's the tea π
like β you flip on SPI_OFFLOAD_XFER_RX_STREAM, and this is the channel where the incoming data shows up. no cap. π₯
π RETURN π
you get a Pointer to DMA channel info β slay π β or a negative error code if things went sideways π (yes, negative error codes, keep an eye out, they're giving red flag energy π©).
π SEE ALSO π
- Kernel file
./drivers/spi/spi-offload.c(go read it, iykyk π) devm_spi_offload_alloc(9)devm_spi_offload_get(9)devm_spi_offload_trigger_get(9)spi_offload_trigger_validate(9)spi_offload_trigger_enable(9)spi_offload_trigger_disable(9)devm_spi_offload_tx_stream_request_dma_chan(9)β the TX sibling, we stan a balanced family π«Άdevm_spi_offload_trigger_register(9)spi_offload_trigger_get_priv(9)
all of these are absolute must-reads, fr fr. the whole friend group π
ngl this page lives under ./drivers/spi and it's dated October 2026 β and the manual is the Kernel API Manual, obviously π
so yeah, that's the sign-off bestie, go request that DMA channel and slay β¨ππ
π¦ 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