of_dma_xilinx_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_dma_xilinx_xlate(9) β€” the Kernel API Manual, bestie edition ✨

okay so welcome to the Kernel API Manual entry for of_dma_xilinx_xlate, and trust me when I say this one is short but it matters. It's literally the little translation function that turns your device-tree DMA spec into an actual DMA channel you can use. no cap. πŸ¦‹


🌸 NAME 🌸

of_dma_xilinx_xlate β€” the translation function πŸ’«

✨ SYNOPSIS ✨

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

like, that's the whole signature. two args in, one channel pointer out. slay. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • dma_spec β€” a pointer to the DMA specifier, exactly as you found it chillin' in the device tree. that's where the magic comes from, bestie. 🌈
  • ofdma β€” a pointer to the DMA controller data. this is your controller's whole vibe, handed over so the translation can actually happen. πŸ‘‘

🫢 RETURN 🫢

A DMA channel pointer on success, and NULL on error. that's it, that's the deal. if you get NULL back, something went sideways β€” handle it, don't ignore it. 😭

real talk: check that return value. NULL means error and the kernel does not owe you a gentle hint. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the manpage absolutely pops off β€” the cross-reference list is giving main character energy and it is LONG, so buckle up. every single one of these is legit, i'm not skipping a single one: πŸ‘‘

like. sixty-four entries. ate and left no crumbs. πŸ’€βœ¨


source location: ./drivers/dma/xilinx · date: October 2026 🌸

and that's the whole page bestie β€” go forth, translate those DMA specs, and remember: NULL means error, so vibe check your return value every single time. mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from