kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: riel@surriel.com (Rik van Riel)
To: kernelnewbies@lists.kernelnewbies.org
Subject: [mm subsystem] A question about function page_table_range_init_count()
Date: Tue, 21 Mar 2017 10:01:23 -0400	[thread overview]
Message-ID: <1490104883.3406.7.camel@surriel.com> (raw)
In-Reply-To: <CA+PpKPmbz=KJvjVqemCxLr3VJfoQUYCMW8C4S930sfDurOYqHw@mail.gmail.com>

On Wed, 2017-03-15 at 22:12 +0800, Hao Lee wrote:
> Hi, all
> 
> I encounter a problem when I read the source code of kernel 4.9.9.
> 
> In arch/x86/mm/init_32.c, at line 125 [1], there is a function named
> page_table_range_init_count(...). I have analyzed some codes and find
> its two parameters are PKMAP_BASE and FIXADDR_START.
> 
> Between Line 141 and Line 150, there is a for loop and I don't know
> what it means, especially Line 144-Line147.
> 
> Could someone can give me some tips. Thanks a lot!
> 
The code iterates over the virtual memory addresses
specified, and counts the number of pmds (second level
page tables) that will be needed to map that address
space.

      reply	other threads:[~2017-03-21 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 14:12 [mm subsystem] A question about function page_table_range_init_count() Hao Lee
2017-03-21 14:01 ` Rik van Riel [this message]

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=1490104883.3406.7.camel@surriel.com \
    --to=riel@surriel.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).