__dma_request_channel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, so this is the page for __dma_request_channel from the Kernel API Manual, and its whole job is literally to try to allocate an exclusive channel. That's the name, that's the vibe, no cap. πŸ’…


✨ SYNOPSIS ✨

the signature is giving main-character energy:

struct dma_chan * __dma_request_channel (const dma_cap_mask_t *mask , dma_filter_fn fn , void *fn_param , struct device_node *np );

πŸŽ€ ARGUMENTS πŸŽ€

  • mask β€” the capabilities that the channel must satisfy. it's the vibe check the channel has to pass, fr fr.
  • fn β€” an optional callback used to disposition the available channels. lowkey the filter bestie.
  • fn_param β€” an opaque parameter that gets passed straight to dma_filter_fn. iykyk.
  • np β€” the device node to look for DMA channels. that's the hunting ground. πŸ¦‹

🌸 DESCRIPTION 🌸

Returns a pointer to the appropriate DMA channel on success, or NULL. That's it. That's the tea. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/dma/dmaengine.c β€” the source/version main character β€” plus this whole group chat of friends:


shoutout to ./drivers/dma (the source/version) and October 2026 (the date) β€” iconic, periodt. πŸ«ΆπŸ’‹

πŸ“¦ where this page comes from