Re: O_DIRECT splice from PCI-resident buffer to filesystem
From: Leon Woestenberg
Date: Wed Jun 03 2009 - 06:25:26 EST
Steve,
On Fri, May 29, 2009 at 8:56 PM, Steve Rottinger <steve@xxxxxxxxxx> wrote:
> After some work, and kernel hacking, and thanks to Jens'
> O_DIRECT/blockio splicing
> patch, I have been successful in using splice to transfer data directly
> from a buffer
> resident on a PCI device to a raw disk partition, with zero copies. Great!
>
As we have no in-kernel character devices with splice_read/write
capability (other than /dev/null and maybe zero) *AFAIK*,
I would like to adapt my driver in staging/ to support splice_read()/write().
The difference is that my PCIe driver (altpciechdma.c) performs DMA
into a scattered set of pages. These pages are then
splice()d over.
Could you share the splice part of your driver for this purpose, so
that I can add splice_read() with less effort?
Regards,
--
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/