of_dma_match_channel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ¦‹


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