All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: File I/O from within a drive
@ 2005-05-25 17:47 van
  0 siblings, 0 replies; only message in thread
From: van @ 2005-05-25 17:47 UTC (permalink / raw)
  To: linux-kernel

> Your assumption that the driver should parse the media file structure
> is probably wrong. You should rather do as much as possible in a user
> space library. Pass a file name to a library call and have that
> work with all the complex parts of the file format, then define an
> ioctl interface for the driver on a relatively low level.

I think this is probably the bit of insight I was looking for; when it looks what what you need to do is wrong, you probably don't need to do that.

In fact, right now I am implementing a simple write() interface as a starting point.  Later on I will be wanting to used mmap()ed buffers anyway, and at that point the application (or some app-level library) will *absolutely* have to be able to parse frames out of the media file.

Thanks, all.
 
--Van Wanless
EQware Engineering, Inc.
van.wanless@eqware.net
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-25 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25 17:47 File I/O from within a drive van

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.