From: Tommy Reynolds <reynolds@redhat.com>
To: Norbert Roos <n.roos@berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: inverse mmap() available?
Date: Fri, 28 Sep 2001 10:28:36 -0500 [thread overview]
Message-ID: <20010928102836.02d0450a.reynolds@redhat.com> (raw)
In-Reply-To: <3BB49438.1F2C59B3@berlin.de>
In-Reply-To: <3BB49438.1F2C59B3@berlin.de>
Norbert Roos <n.roos@berlin.de> was pleased to say:
>
> Hello!
>
> Is there a way to map user space memory into kernel address space, e.g.
> that i don't have to call get_user(var,...) but simply use var =
> *user_space_ptr?
>
> What i intend to do (as the next step) is to DMA-transfer data directly
> between a PCI device and user space memory. The buffer in user space
> should be allocated with malloc(), so allocating a buffer in kernel and
> mmap()-ping it to user space is not the solution..
>
> I guess this has been asked before, any links to further information
> would be great.
Look at the KIOBUF stuff in <linux/iobuf.h> for how to do this.
---------------------------------------------+-----------------------------
Tommy Reynolds | mailto: <reynolds@redhat.com>
Red Hat, Inc., Embedded Development Services | Phone: +1.256.704.9286
307 Wynn Drive NW, Huntsville, AL 35805 USA | FAX: +1.236.837.3839
Senior Software Developer | Mobile: +1.919.641.2923
next prev parent reply other threads:[~2001-09-28 15:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-28 15:16 Norbert Roos
2001-09-28 15:28 ` Tommy Reynolds [this message]
2001-09-28 15:30 ` Christoph Hellwig
2001-09-28 16:50 ` putting a user program to sleep till interrupted Anil Kumar
2001-10-01 7:39 ` Martin Maletinsky
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=20010928102836.02d0450a.reynolds@redhat.com \
--to=reynolds@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=n.roos@berlin.de \
/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®