Re: How to avoid data copies in a driver ?

From: Pavel Machek
Date: Wed May 21 2008 - 06:42:51 EST

On Wed 2008-05-14 21:54:03, Francis Moreau wrote:
> Hello,
> I'd like to optimize my driver, which receives data through a fifo and gives
> them to a user space application. In turns this application moves this data
> into a file.
> To avoid several useless copies, I'd like the application to pass to the driver
> a file descriptor (?) to the driver and then the driver can directly move the
> received data to that file.
> Could anybody give me some example of such scheme ?

man splice?

(cesky, pictures)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at