Re: [PATCH 1/2] mm/gup: introduce pin_user_pages_locked()

From: John Hubbard
Date: Sun May 31 2020 - 15:56:26 EST

On 2020-05-31 00:13, Souptick Joarder wrote:
On Sun, May 31, 2020 at 12:34 PM Souptick Joarder <jrdr.linux@xxxxxxxxx> wrote:

On Thu, May 28, 2020 at 4:02 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:

Introduce pin_user_pages_locked(), which is nearly identical to
get_user_pages_locked() except that it sets FOLL_PIN and rejects

Forget to ask, is it fine to add this new pin_user_pages_locked() in
Documentation/core-api/pin_user_pages.rst ?

I wasn't planning on maintaining a rigorous list of all of the pin_user_page*()
API calls, in pin_user_pages.rst. Each call is documented in gup.c, for that.
The .rst is there to help explain things at a slighly higher abstraction level.

John Hubbard