From: "liyu@WAN" <liyu@ccoss.com.cn>
To: LKML <linux-kernel@vger.kernel.org>
Subject: the magic in do_page_fault() ???
Date: Mon, 04 Jul 2005 13:23:58 +0800 [thread overview]
Message-ID: <42C8C7EE.8040906@ccoss.com.cn> (raw)
Hi LKML:
I am reading code of memory management. this process is so challengable.
I have one quetion too.
in do_page_fault() (kernel 2.6.11.11) include one piece of code as
follow:
if (!down_read_trylock(&mm->mmap_sem)) {
if ((error_code & 4) == 0 &&
!search_exception_tables(regs->eip))
goto bad_area_nosemaphore;
down_read(&mm->mmap_sem);
}
I think I can understand these operations on mm->mmap_sem and
"error_code&4".
but how "search_exception_tables(regs->eip)" work here?
In "Understanding Linux kernel 2ed" book, the author say , kernel
must difference two case:
1. kernel memory access problem.
2. Arguments of system call include address of memeory unit is
unmapped.
Well, That is OK. but I want to know what 's mechanism in it ?
3ks. (in Chinese , number 3 read as 'th' :)
liyu
Mon Jul
4 13:23:24 CST 2005
next reply other threads:[~2005-07-04 5:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-04 5:23 liyu@WAN [this message]
2005-07-04 7:24 ` the magic in do_page_fault() ??? Steven Rostedt
-- strict thread matches above, loose matches on Subject: below --
2005-07-04 5:23 liyu@LAN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42C8C7EE.8040906@ccoss.com.cn \
--to=liyu@ccoss.com.cn \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox