Re: kernel thread and copy_to_user

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

 



On Fri, 2002-12-27 at 15:06, zw wrote:

> Thanks for your answer! It seems that I got confused. :)
> 
> So it seems that copy_from_user could only happen within a task? I 
> mean, if the user-process get into the kernel with a syscall, then 
> the syscall could do copy_from_user, then do some stuff with that 
> data in kernel-space. But it's all happening within a task. Is that 
> right?

Correct.  They must be called within process context and they operate on
that process's address space.

> Thanks for the clarification! :)

You are welcome.

	Robert Love

--
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