--- zw <zhaoway@public1.ptt.js.cn> wrote: > 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. But I thought while doing copy_to_user() the task should have a valid task->mm. no? > You could read numerous examples doing this in http://lxr.linux.no > Search for kernel_thread and copy_to_user. Sorry. I did try that but got LOTS of results mostly not useful. Can you please point me to a kernel thread (in the source) that does a copy_to_user()?? That will I guess answer my question. Thanks, A. > 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). > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/