[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Why can't we use the user-space pointer in kernel mode?
> -----Original Message-----
> From: kernelnewbies-bounce@xxxxxxxxxxxx
> [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of cheng long
> Sent: Wednesday, May 03, 2006 10:20 AM
> To: arjan@xxxxxxxxxxxxx
> Cc: kernelnewbies@xxxxxxxxxxxx
> Subject: Re: Why can't we use the user-space pointer in kernel mode?
>
>
> > because it may be swapped out to disk ...
> > you need a special function that can deal with that (and swaps it
> > right back in)
> Why can't we use the "page fault handler" like in user space
> to swap the page back in?
Why can't you just use copy_*_user() functions and let them take
care of these details, or am I missing something?
>
> Thanks,
> Cheng
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/