of_dma_match_channel(9)
πΈ NAME πΈ
Okay bestie, welcome to the of_dma_match_channel(9) page from the Kernel API Manual. This one is literally: of_dma_match_channel β check if a DMA specifier matches name. That's the whole vibe. π
β¨ SYNOPSIS β¨
int of_dma_match_channel (struct device_node *np , const char *name ,
int index , struct of_phandle_args *dma_spec );
π ARGUMENTS π
npβ the device node to look for DMA channels. This is where the search happens, bestie.nameβ the channel name to be matched. The name in question, fr fr.indexβ index of DMA specifier in list of DMA specifiers. It's giving "which one are we checking" energy.dma_specβ pointer to DMA specifier as found in the device tree. Yep, that exact kind of pointer.
π DESCRIPTION π
Okay so here's the tea: this checks if the DMA specifier pointed to by the index in a list of DMA specifiers matches the name provided.
Returns 0 if the name matches and a valid pointer to the DMA specifier is found. Otherwise returns -ENODEV. That's it. No cap. β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/dma/of-dma.c 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_request_slave_channel(9)of_dma_simple_xlate(9)of_dma_xlate_by_chan_id(9)
That's the whole page, bestie. Cute sign-off: it comes from ./drivers/dma, dated October 2026, and it's the of_dma_match_channel(9) manual page. 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