From: Soumya Desai <soumya@tejasnetworks.com>
To: wd@denx.de
Cc: gopi@tejasnetworks.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: Accessing file from drivers (fwd)
Date: Fri, 16 Mar 2001 11:02:46 +0530 [thread overview]
Message-ID: <3AB1A57E.669B3166@tejasnetworks.com> (raw)
In-Reply-To: Pine.LNX.4.21.0103160943270.9927-100000@localhost.localdomain
>
Hi Wolfgang,
The exact problem that we're trying to solve, is to program an FPGA with a hex file
which is in our file system. But the problem is general is to have a way to write a
system call say 'sys_copy' which will copy one file to another. An user-mode
application would read from one file and write back to another, which would result in
copying the data from the file driver ( kernel space ) to the user-space, and again
back to the kernel space. We were curious as to whether a way existed by which we can
do the read and write, sitting in the kernel space itself. Of course adding our own
ioctl to the drivers will serve the purpose, but we were looking for some way in which
we would NOT need to modify the existing file system drivers. I was wondering if it
would be possible to bypass the read/write call themselves, but hack our way into the
buffer caches of block drivers, to do this ? Anyone tried something similar ?
Regards,
Soumya.
>
> ---------- Forwarded message ----------
> Date: Thu, 15 Mar 2001 15:04:31 +0100
> From: Wolfgang Denk <wd@denx.de>
> To: gopi@tejasnetworks.com
> Cc: linuxppc-dev@lists.linuxppc.org
> Subject: Re: Accessing file from drivers
>
> In message <Pine.LNX.4.21.0103151822090.9108-100000@localhost.localdomain> you wrote:
> >
> > Is it possible to read and write to files (say /etc/xyz)
> > in a device driver without resorting to user space? I want
>
> You do not want to do this. It's bad design. Implement an ioctl() for
> the configuration, and use that.
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
> "Send lawyers, guns and money..." - Lyrics from a Warren Zevon song
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next parent reply other threads:[~2001-03-16 5:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.21.0103160943270.9927-100000@localhost.localdomain>
2001-03-16 5:32 ` Soumya Desai [this message]
2001-03-16 8:28 ` Accessing file from drivers (fwd) Stefano Coluccini
2001-03-16 15:06 ` Wolfgang Denk
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=3AB1A57E.669B3166@tejasnetworks.com \
--to=soumya@tejasnetworks.com \
--cc=gopi@tejasnetworks.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=wd@denx.de \
/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 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.