Re: DMA to/from user buffers

From: Gerd Knorr (kraxel@bytesex.org)
Date: Tue Sep 04 2001 - 14:30:49 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:28 EST