of_zynqmp_dma_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« NAME πŸ’«

of_zynqmp_dma_xlate β€” the translation function, bestie. it's giving "matchmaker for the device tree" energy ✨

so this page is from the Kernel API Manual (yes, the fancy one πŸ‘‘), and it's literally just about one lil function that turns a device-tree DMA specifier into an actual usable DMA channel. slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like… look at her. two args, returns a struct dma_chan *. iconic behavior fr πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dma_spec β€” a pointer to the DMA specifier exactly as you find it in the device tree 🌸. this is the "who's asking" of the operation.
  • ofdma β€” a pointer to the DMA controller data 🧚. this is the "who's answering."

two pointers walk into a bar. one of them is the spec, the other one is the controller. the rest is history πŸ’œ


⭐ RETURN ⭐

gives you back a DMA channel pointer on success πŸ’– β€” and NULL on error 😭. no in-between, no "it's complicated", just vibes or nothing. check it, bestie. iykyk.


🌈 SEE ALSO 🌈

okay so this is the part where the manpage absolutely ATE β€” look at this lineup, it's the whole zynqmp DMA cinematic universe πŸ‘‘

the source file, in all her glory:

  • ./drivers/dma/xilinx/zynqmp_dma.c

the structs (the main characters):

  • struct zynqmp_dma_desc_ll(9)
  • struct zynqmp_dma_desc_sw(9)
  • struct zynqmp_dma_chan(9)
  • struct zynqmp_dma_device(9)

the supporting cast (no cap, there's like a LOT of them):

like, go read them. all of them. or at least the ones you need. i'm not your mom 🫢


ngl this page is short but she's efficient β€” the whole job is: spec in, channel out. that's the plot. πŸ“

✨ and that's the page, bestie ✨ this little slice of the Kernel API Manual lives over in ./drivers/dma/xilinx and it's dated October 2026 β€” so yes, she's future-dated, she's ahead of her time, she's a main character πŸ’€πŸ‘‘ mwah, go read some more manpages, you're doing amazing πŸŽ€

πŸ“¦ where this page comes from