Re: copy_from_user size limit

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

 





>Is there any restriction that copy_from_user and copy_to_user can copy
only upto page 4k(page size) of user >data? If I need to pass more than 4K,
should I check for making multiple calls from within the driver?
If your buffer cross the page boundary, then copy_to/from_user might sleep
if next target page is not in memory i.e. present in swap space. Its
shouldn't be a problem.

Regards,
Anil.


-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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