How to avoid data copies in a driver ?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Wednesday, May 14, 2008 - 3:54 pm

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 ?

Thanks,
-- 
Francis
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to avoid data copies in a driver ?, Francis Moreau, (Wed May 14, 3:54 pm)
Re: How to avoid data copies in a driver ?, Pavel Machek, (Wed May 21, 6:41 am)
Re: How to avoid data copies in a driver ?, linux-os (Dick Johnson), (Wed May 14, 5:23 pm)
Re: How to avoid data copies in a driver ?, Francis Moreau, (Thu May 15, 3:40 am)
Re: How to avoid data copies in a driver ?, Jeremy Fitzhardinge, (Fri May 16, 4:10 am)
Re: How to avoid data copies in a driver ?, Francis Moreau, (Fri May 16, 7:44 am)
Re: How to avoid data copies in a driver ?, linux-os (Dick Johnson), (Thu May 15, 9:16 am)
Re: How to avoid data copies in a driver ?, Arnd Hannemann, (Thu May 15, 7:50 am)
Re: How to avoid data copies in a driver ?, Francis Moreau, (Thu May 15, 8:08 am)
Re: How to avoid data copies in a driver ?, Lennart Sorensen, (Wed May 14, 4:02 pm)
Re: How to avoid data copies in a driver ?, Francis Moreau, (Thu May 15, 3:44 am)
Re: How to avoid data copies in a driver ?, Lennart Sorensen, (Thu May 15, 9:59 am)
Re: How to avoid data copies in a driver ?, Francis Moreau, (Fri May 16, 4:17 pm)