get_user_pages and pinning
Rik van Riel
riel at surriel.com
Sun Jan 3 13:26:45 EST 2021
On Sun, 2021-01-03 at 12:54 -0500, Sadanand Warrier wrote:
>
> So the question is what should happen if the memory isn't actually
> allocated. Should get_user_pages check?
> It doesn't seem to be doing so. Can it?
If the driver needs the memory to be allocated, why not
use the FOLL_POPULATE flag when calling get_user_pages?
--
All Rights Reversed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210103/390a2bc0/attachment.sig>
More information about the Kernelnewbies
mailing list