Re: Why can't an ISR cause a page fault?

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

 



Hi,

Le Tue, 23 Jan 2007 16:16:20 +0530,
"Daniel Rodrick" <daniel.rodrick@xxxxxxxxx> a écrit :

> 2) In the case it is true, how are situations like this handled : an
> ISR tries to use a data item that has been swapped out?

The kernel code is always resident in memory, as is all the memory
allocated by the kernel. It cannot be swapped out.

The memory that can be swapped out is only the one allocated for user
applications. And when the kernel wants to copy from/to the user part
of an address space, it must use the copy_from_user() / copy_to_user()
that handle specifically the page fault case.

Sincerly,

Thomas
-- 
Thomas Petazzoni - thomas.petazzoni@xxxxxxxx
http://{thomas,sos,kos}.enix.org - http://www.toulibre.org
http://www.{livret,agenda}dulibre.org

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