mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Mohamed El Dawy <msdawy@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Is the address space of a process continous
Date: Sun, 04 Dec 2005 22:46:29 +0100	[thread overview]
Message-ID: <1133732789.5188.65.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <afd776760512041337l40a1879drb8b0b526100791a8@mail.gmail.com>

On Sun, 2005-12-04 at 15:37 -0600, Mohamed El Dawy wrote:
> Hi,
>  I have a question. In the vma_memory_address struct, there are 2
> fields "vm_start" and "vm_end". I was wondering, does the process
> address space include all addresses between those 2 addresses? or
> could there be holes inside this range?
> 
> The main reason I am asking is because I tried to call __follow_page()
> on some of those addresses and got NULL as a result. I am not sure if
> this is a hole, or just a problem with my code!

the kernel does this on demand; eg
user mmaps a range
user touches (read or writes) part of that range

each time the user gets to a page that wasn't touched/used before, the
kernel takes a fault and fills in the address.

if you get nulls it's just pages that haven't been used yet.



      reply	other threads:[~2005-12-04 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-04 21:37 Mohamed El Dawy
2005-12-04 21:46 ` Arjan van de Ven [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=1133732789.5188.65.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=msdawy@gmail.com \
    /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

all inboxes | Powered by JetHome®