Re: Why can't we use the user-space pointer in kernel mode?

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

 



On Wed, 2006-05-03 at 18:56 +0800, cheng long wrote:
> Hi, all
> 
> Since the progress in kernel mode can access the whole address space,
> why we must copy the user-space data into kernel space?
> Why  can't we dereference the user-space pointer directly?

because it may be swapped out to disk ... 
you need a special function that can deal with that (and swaps it right
back in)


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