Re: Faulting in pages from within the kernel?

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

 



On Mon, 1 Nov 2004, Timur Tabi wrote:

> I'm really just interested in minor page faults.  We have a situation in
> our driver where a particular user-space page is locked but there's no
> PTE entry for it.  Touching the page in user-space will cause a minor
> page fault, and that will rebuild the PTE.  I'd like to be able to do
> that from within our driver.  Is there any way to do that?

If I understand you correctly, copy_to_user and copy_from_user
should do everything you want already, automatically.

Rik
-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

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