All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@bytesex.org>
To: linux-kernel@vger.kernel.org
Subject: Re: DMA to/from user buffers
Date: 4 Sep 2001 19:30:49 GMT	[thread overview]
Message-ID: <slrn9paav9.8bf.kraxel@bytesex.org> (raw)
In-Reply-To: <20010904164509.A27144@csr-pc1.zib.de>

Sebastian Heidl wrote:
>  
>  Hi,
>  
>  two questions about using an user-supplied buffer (e.g. malloced
>  in user space) for DMA transfers:
>  
>  1. Is it possible ?
>  2. What restrictions/requirements apply for the buffer (alignment...) ?
>  
>  Documentation/DMA-mapping.txt only talks about buffers allocated in
>  kernel space.

Lock down the user pages using kiobufs (see include/linux/iobufs.h),
then feed these pages to the pci_* functions.

  Gerd

-- 
Damn lot people confuse usability and eye-candy.

  reply	other threads:[~2001-09-04 20:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-04 14:45 DMA to/from user buffers Sebastian Heidl
2001-09-04 19:30 ` Gerd Knorr [this message]
2001-09-05  7:51 ` Helge Hafting

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=slrn9paav9.8bf.kraxel@bytesex.org \
    --to=kraxel@bytesex.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.