2009-04-19 16:17:19

by Leon Woestenberg

[permalink] [raw]
Subject: splice_read() for device drivers?

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