<br><br>On Mon, Feb 11, 2013 at 4:51 PM, पारस <<a href="mailto:beparas@gmail.com">beparas@gmail.com</a>> wrote:<br>> Hi All,<br>><br>> To read/write data to user-space from kernel-space we use copy_from_user()<br>
> and copy_to_user() functions.<br>><br>> What is the use of these function?<br>> Why kernel can't directly access user address and read/write on to it?<br>what will happen if the user space process gets scheduled out while<br>
you were using it?<br>> Can any one explain why kernel can't directly access the user-space address.<br>><br>> Thanks<br>><br>><br>> _______________________________________________<br>> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br><br>