Re: [PATCH 1/1] Userspace I/O (UIO): Add support for userspace DMA

From: Edward Estabrook
Date: Wed Dec 03 2008 - 21:44:20 EST

> You are using a magic value to mmap(), just to keep options open:
> Would this in the future allow us to also add support for streaming
> non-coherent DMA directly into user space buffers?

Yes, but additional userspace control is also required.
1) The specification of direction at the time of buffer creation,
unless force DMA_BIDIRECTIONAL is assumed.
2) An API to faciliate userspace control over dma_unmap_page() /
dma_sync_single_for_cpu() calls (perhaps by further overloading
of the write method).

The use of this magic value does not prevent the future addition of
streaming DMA support, but does not provide sufficient controls.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at