devm_spi_of...est_dma_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_spi_offload_tx_stream_request_dma_chan πŸ’…

okay bestie, so this is a page straight out of the Kernel API Manual, and it's about one very specific little function: devm_spi_offload_tx_stream_request_dma_chan. say it with me. it's a mouthful. it ate though. 🫢


✨ NAME ✨

devm_spi_offload_tx_stream_request_dma_chan β€” grab the DMA channel info for the TX stream, bestie, that's the whole job πŸŽ€


🌸 SYNOPSIS 🌸

struct dma_chan * devm_spi_offload_tx_stream_request_dma_chan (struct
device *dev , struct spi_offload *offload );

like, look at her. struct dma_chan *. she returns a pointer. main character behavior honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the Device, here for devm purposes. that's it, that's the vibe, it's the managed-lifetime plug πŸ’–
  • offload β€” the Offload instance. the little guy we're asking about.

πŸ’€ DESCRIPTION πŸ’€

so here's the tea β˜•: this is the DMA channel that will provide data to transfers that use the SPI_OFFLOAD_XFER_TX_STREAM offload flag. no cap, that's the entire lore. she's the data supplier for those TX stream transfers, periodt ✨


πŸ”₯ RETURN πŸ”₯

Pointer to DMA channel info β€” or a negative error code 😭 (so like, check it, don't just yolo it into a dereference, i'm begging πŸ™ˆ)


🌈 SEE ALSO 🌈


ok that's the page!! every flag, every name, every reference stayed exactly where it belongs β€” i just gave it a little glitter πŸ’…

and finally, the cute little sign-off: this one lives in ./drivers/spi, it's dated October 2026, and it's part of the Kernel API Manual. slay, go read your DMA channels, mwah πŸ“πŸ’–

πŸ“¦ where this page comes from