of_dma_get_max_cpu_address(9)
π of_dma_get_max_cpu_address(9) π
okay so this is the Kernel API Manual page for of_dma_get_max_cpu_address(9) β yes bestie, we're in kernel-land and it's giving device-tree energy π³β¨
πΈ NAME πΈ
of_dma_get_max_cpu_address β gets the highest CPU address suitable for DMA.
π SYNOPSIS π
phys_addr_t of_dma_get_max_cpu_address (struct device_node *np );
π¦ ARGUMENTS π¦
npβ the node to start searching from, orNULLto start from the root.
β¨ DESCRIPTION β¨
So here's the vibe: this function gets the highest CPU physical address that is addressable by all DMA masters in the sub-tree pointed to by np β or the whole tree if NULL is passed. π
If no DMA constrained device is found, it returns PHYS_ADDR_MAX. That's the whole story, no cap. π
π SEE ALSO π
- Kernel file
./drivers/of/address.c of_translate_dma_region(9)of_property_read_reg(9)of_dma_get_range(9)of_dma_is_coherent(9)of_mmio_is_nonposted(9)of_address_to_resource(9)of_iomap(9)
and that's the page, bestie π«Ά source/version: ./drivers/of, dated October 2026, manual tag of_dma_get_max_cpu_address(9) β 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