Re: [PATCH 06/22] mm: factor out a devm_request_free_mem_region helper

From: Christoph Hellwig
Date: Fri Jun 14 2019 - 02:30:09 EST


On Thu, Jun 13, 2019 at 07:16:35PM +0000, Jason Gunthorpe wrote:
> I wonder if IORES_DESC_DEVICE_PRIVATE_MEMORY should be a function
> argument?

No. The only reason to use this function is to allocate the fake
physical address space for the device private memory case. If you'd
deal with real resources you'd use the normal resource allocator.