of_dma_simple_xlate(9)
π NAME π
okay so this is the Kernel API Manual page for of_dma_simple_xlate β literally the Simple DMA engine translation function. bestie, that's the whole name vibe: of_dma_simple_xlate + βSimple DMA engine translation function.β periodt. π
β¨ SYNOPSIS β¨
struct dma_chan * of_dma_simple_xlate (struct of_phandle_args *dma_spec
, struct of_dma *ofdma );
π ARGUMENTS π
dma_specβ pointer to the DMA specifier as found in the device tree. yes, that exact one π¦ofdmaβ pointer to DMA controller data. the controller info goes here π
πΈ DESCRIPTION πΈ
okay so hereβs the tea β: this is the simple translation function for devices that use a 32-bit value for the filter_param when calling the DMA engine dma_request_channel function. itβs giving βsmall but iconic.β β¨
heads up bestie, this translation function requires that #dma-cells is equal to 1 and the argument of the dma specifier is the 32-bit filter_param. no cap, thatβs a hard requirement π
on success it returns a pointer to the appropriate dma channel; on error it returns NULL. on error, the return is NULL π
π SEE ALSO π
Kernel file ./drivers/dma/of-dma.c β and the whole squad is:
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_xlate_by_chan_id(9)
mwah π this page came from ./drivers/dma, dated October 2026 β itβs of_dma_simple_xlate(9) from the Kernel API Manual, and thatβs the vibe. bye bestie π«Άπ
π¦ 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