splice_read() for device drivers?

From: Leon Woestenberg
Date: Sun Apr 19 2009 - 12:17:19 EST


Hello,


I have a device driver for data acquisition that currently exposes a
character device. The device driver performs DMA transfers directly
into/from user space on read/write().

If I want the driver to support splicing, must I implement
splice_read/write() ops? Can I make them directly DMA into the splice
pipe buffer pages?

I found no current implementation of splice_read/write(), except for
filesystem drivers.

Is there a write-up on this or a reference implementation? Any work in
progress for LDD4 or such?

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/