--- zzzz-none-000/linux-5.4.213/Documentation/DMA-API.txt 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/Documentation/DMA-API.txt 2024-05-29 11:19:50.000000000 +0000 @@ -603,6 +603,17 @@ region only at the granularity of a page. For smaller allocations, you should use the dma_pool() API. +:: + + void + dma_release_declared_memory(struct device *dev) + +Remove the memory region previously declared from the system. This +API performs *no* in-use checking for this region and will return +unconditionally having removed all the required structures. It is the +driver's job to ensure that no parts of this memory region are +currently in use. + Part III - Debug drivers use of the DMA-API -------------------------------------------