Re: get_user_pages and pinning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux