of_dma_xlate_by_chan_id(9)
π of_dma_xlate_by_chan_id(9) π
okay bestie, this is the of_dma_xlate_by_chan_id(9) page from the Kernel API Manual, and it's lowkey iconic. stay with me.
πΈ NAME πΈ
of_dma_xlate_by_chan_id β Translate dt property to DMA channel by channel id. periodt.
π¦ SYNOPSIS π¦
struct dma_chan * of_dma_xlate_by_chan_id (struct of_phandle_args
*dma_spec , struct of_dma *ofdma );
π ARGUMENTS π
dma_specβ pointer to DMA specifier as found in the device tree. That's the main character input, fr fr.ofdmaβ pointer to DMA controller data. Also essential, no cap.
π DESCRIPTION π
This function can be used as the of xlate callback for a DMA driver that wants to match the channel based on the channel id. it's giving "match by id" energy.
When using this xlate function, the #dma-cells property of the DMA controller dt node needs to be set to 1. not 2, not vibes β literally 1. π
The data parameter of of_dma_controller_register must be a pointer to the dma_device struct the function should match upon. highkey important, bestie.
Returns pointer to appropriate dma channel on success or NULL on error. slay on success, NULL when it's not giving. π
π₯ SEE ALSO π₯
Kernel file ./drivers/dma/of-dma.c and the whole squad:
of_dma_find_controller(9)of_dma_router_xlate(9)of_dma_controller_register(9)of_dma_controller_free(9)of_dma_router_register(9)of_dma_match_channel(9)of_dma_request_slave_channel(9)of_dma_simple_xlate(9)
made with π from ./drivers/dma, October 2026 β periodt.
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms