Re: kernel thread and copy_to_user

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

 



It certainly can. If my understanding is correct. :)
I think you don't have to do anything special before you call copy_to_user() in your kernel_thread() if you've got the right pointer.

You could read numerous examples doing this in http://lxr.linux.no
Search for kernel_thread and copy_to_user.

devnetfs wrote:
Hi,

Can a kernel thread do copy_to_user()? OR can it be made to do so?

I have a kernel module that creates a kernel thread and wants to copy
data into user space (it knows the destination addr and the process
into which it has to do the copy).
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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