Use of copy_to_user() and copy_from_user() functions

पारस beparas at gmail.com
Mon Feb 11 06:21:44 EST 2013


Hi All,

To read/write data to user-space from kernel-space we use copy_from_user()
and copy_to_user() functions.

What is the use of these function?
Why kernel can't directly access user address and read/write on to it?
Can any one explain why kernel can't directly access the user-space
address.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130211/f128c9ee/attachment.html 


More information about the Kernelnewbies mailing list