Thread (4 messages) 4 messages, 3 authors, 2014-09-10

Page fault in kernel code

From: Greg KH <hidden>
Date: 2014-09-09 14:25:05

Possibly related (same subject, not in this thread)

On Tue, Sep 09, 2014 at 06:53:55PM +0530, Manavendra Nath Manav wrote:
While reading the book Essential Linux device drivers it says "user mode code
is allowed to page fault, however, whereas kernel mode code isn't".

Why is it so? Why can't kernel mode code handle the page fault and reload the
page from swap? Also, can page fault occur when kernel is executing in process
context and/or interrupt context?
That is just the way the Linux kernel is designed, no page faults within
it, unlike other operating systems.  In the end, it makes kernel code
much simpler.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help