public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* File I/O from within a driver
@ 2005-05-25  5:15 van
  2005-05-25  5:41 ` Brian Gerst
  2005-05-25 12:18 ` Arnd Bergmann
  0 siblings, 2 replies; 4+ messages in thread
From: van @ 2005-05-25  5:15 UTC (permalink / raw)
  To: linux-kernel

Hi...
 
I am currently writing a driver for a hardware codec accelerator.  The calling application will open a media file, write to the codec driver, and read frames back from the codec driver.  My issue comes with the read of the media file.  The structure of media files is complex and I'd rather the calling application didn't need to have any knowledge of that structure.  But how can the driver do the necessary read() operations?
 
I could, for example, have the application pass an open file descriptor in to my driver via an ioctl() call; if I understand matters correctly, my driver could then call sys_read().  I've never done anything like that before, never expected to need to, and it doesn't feel right.
 
Can anyone suggest the *proper* way to accomplish this?
 
I am not a member the list list; I hit the weeklies pretty frequently, but I'd appreciate it any responders would CC me directly at van.wanless@eqware.net.   Thanks.
 
--Van Wanless
EQware Engineering, Inc.
van.wanless@eqware.net


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-25 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25  5:15 File I/O from within a driver van
2005-05-25  5:41 ` Brian Gerst
2005-05-25 11:56   ` John W. Linville
2005-05-25 12:18 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox