public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@quark.didntduck.org>
To: Melkor Ainur <melkorainur@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: user space virtual address to a vm_area_struct
Date: Wed, 16 Oct 2002 07:13:52 -0400	[thread overview]
Message-ID: <3DAD49F0.8050808@quark.didntduck.org> (raw)
In-Reply-To: 20021016091011.9346.qmail@web21204.mail.yahoo.com

Melkor Ainur wrote:
> Hi,
> 
> Is there a recommended way for a driver to take an
> application provided virtual address while executing
> in the syscall context of that same application and
> find the corresponding vm_area_struct (if exists for
> that address) that spans that virtual address?
> 
> Melkor

down_read(current->mm->mmap_sem);
vma = find_vma(current->mm, address);
...
up_read(current->mm->mmap_sem);

--
				Brian Gerst



      reply	other threads:[~2002-10-16 11:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16  9:10 user space virtual address to a vm_area_struct Melkor Ainur
2002-10-16 11:13 ` Brian Gerst [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=3DAD49F0.8050808@quark.didntduck.org \
    --to=bgerst@quark.didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=melkorainur@yahoo.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