UIO DMA to userspace question

From: Leon Woestenberg
Date: Sat Aug 07 2010 - 14:38:41 EST


Hello all,

can I use the UIO framework for the following?

The userspace portion of the driver allocates memory in user-space
using malloc() - usually resulting in a scatter pages in physical
memory.
The UIO kernel portion of the driver maps those using pci_map_sg().

Is this possible, or does the UIO framework assume memory for DMA is
allocated in kernel space?


Thanks,
--
Leon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/