Use of copy_to_user() and copy_from_user() functions

anish singh anish198519851985 at gmail.com
Mon Feb 11 06:55:28 EST 2013


On Mon, Feb 11, 2013 at 4:51 PM, पारस <beparas at gmail.com> wrote:
> 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?
what will happen if the user space process gets scheduled out while
you were using it?
> Can any one explain why kernel can't directly access the user-space
address.
>
> Thanks
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130211/9a296094/attachment.html 


More information about the Kernelnewbies mailing list