devm_spi_of...est_dma_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

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