From: van <van.wanless@eqware.net>
To: <linux-kernel@vger.kernel.org>
Subject: File I/O from within a driver
Date: Tue, 24 May 2005 22:15:31 -0700 [thread overview]
Message-ID: <2005524221531.650853@Oz> (raw)
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
next reply other threads:[~2005-05-25 5:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-25 5:15 van [this message]
2005-05-25 5:41 ` File I/O from within a driver Brian Gerst
2005-05-25 11:56 ` John W. Linville
2005-05-25 12:18 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2005524221531.650853@Oz \
--to=van.wanless@eqware.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox