Re: [PATCH 4/4] memremap: provide a not device managed memremap_pages

From: Andrew Morton
Date: Fri Aug 16 2019 - 17:01:01 EST


On Fri, 16 Aug 2019 08:54:34 +0200 Christoph Hellwig <hch@xxxxxx> wrote:

> The kvmppc ultravisor code wants a device private memory pool that is
> system wide and not attached to a device. Instead of faking up one
> provide a low-level memremap_pages for it. Note that this function is
> not exported, and doesn't have a cleanup routine associated with it to
> discourage use from more driver like users.

Confused. Which function is "not exported"?

> +EXPORT_SYMBOL_GPL(memunmap_pages);
> +EXPORT_SYMBOL_GPL(memremap_pages);
> EXPORT_SYMBOL_GPL(devm_memremap_pages);