Why can't you just use copy_*_user() functions and let them take care of these details, or am I missing something?
But in copy_from_user() function, the kernel do copy the data intto kernel space besides making some necessory checks. In fact, the do_page_fault() function will generate "Oops" when accessing a swapped out user space page. why is that? why don't the do_page_fault() swapped it back in? -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/