adm_dma_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ adm_dma_xlate(9) ✨

the little kernel-API page from the Kernel API Manual, bestie β€” yes the whole thing lives in there


🌸 NAME 🌸

adm_dma_xlate β€” okay so the original page literally leaves this one blank, no description, nothing, just the name and then silence 😭 so I'm not gonna invent a summary for you. Spoiler though: it's the DMA xlate hook. Keep reading, it all makes sense in a sec πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dma_chan * adm_dma_xlate (struct of_phandle_args *dma_spec ,
struct of_dma *ofdma );

That's the whole signature, copied character for character, no notes ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dma_spec β€” pointer to the DMA specifier, exactly as you found it in the device tree 🌈
  • ofdma β€” pointer to the DMA controller data πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So this one can roll with either the 1-cell or the 2-cell format β€” flexible queen behavior, we love to see it 🫢

  • the first cell identifies the slave device
  • the optional second cell carries the crci value

And the return vibe: it gives you back a pointer to the appropriate dma channel on success, or NULL on error πŸ’€ (yes, always check for the NULL, that's just basic self-care)


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/dma/qcom/qcom_adm.c, plus the whole friend group:


and that's the page!! shoutout to ./drivers/dma/qcom for being the source, and to October 2026 for the date β€” timestamped and iconic, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from