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/