From: Mark Hounschell <dmarkh@cfl.rr.com>
To: dmarkh@cfl.rr.com
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: find_vma_intersection
Date: Fri, 30 Dec 2005 07:34:20 -0500 [thread overview]
Message-ID: <43B5294C.20903@cfl.rr.com> (raw)
In-Reply-To: <43B5146B.9090609@cfl.rr.com>
Mark Hounschell wrote:
> Can someone enlighten me as to what it really means when a user land
> shmat call, in which the virtual address is provided, fails in the
> kernel find_vma_intersection function because
>
> end_addr(of my SHM) is <= vma->vm_start?
Actually because its ! <= vma->vm_start.
>
> static inline struct vm_area_struct * find_vma_intersection(struct
> mm_struct * mm, unsigned long start_addr, unsigned long end_addr)
> {
> struct vm_area_struct * vma = find_vma(mm,start_addr);
>
> if (vma && end_addr <= vma->vm_start)
> vma = NULL;
> return vma;
> }
>
Thanks
Mark
prev parent reply other threads:[~2005-12-30 12:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-30 11:05 find_vma_intersection Mark Hounschell
2005-12-30 12:34 ` Mark Hounschell [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=43B5294C.20903@cfl.rr.com \
--to=dmarkh@cfl.rr.com \
--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