kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Bijan Tabatabai <bijan311@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: How and where are a processes's PTEs set when mmaping a file in a tmpfs?
Date: Tue, 1 Sep 2020 14:33:55 -0500	[thread overview]
Message-ID: <CAMvvPS50MU-t1_mkaqE0ten0VeAVa2QK7Yi=XeJfcv-Tz81=jQ@mail.gmail.com> (raw)

Hello,

I am looking into what happens under the hood when a file on a tmpfs
partition gets mmap'd. I am particularly interested in seeing how the
PTEs for the new memory region are populated, but I can't seem to find
exactly where that happens. I tried looking through the shmem_mmap and
shmem_fault functions as well as other places in mm/shmem.c without
much luck, though it is possible I just missed it.

Can someone point me in the right direction?

Thanks,
Bijan

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

                 reply	other threads:[~2020-09-05  2:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAMvvPS50MU-t1_mkaqE0ten0VeAVa2QK7Yi=XeJfcv-Tz81=jQ@mail.gmail.com' \
    --to=bijan311@gmail.com \
    --cc=kernelnewbies@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).