Skip to contentSkip to conversation

splice_read() for device drivers?

DISCUSSION Leon Woestenberg 1 participant 1 message Apr 19, 2009

lore
Share & tools
lore
#0 lore raw

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,

Signature · 1 line
Leon