From: Ralf Baechle <ralf@linux-mips.org>
To: Brad Parker <brad@parker.boston.ma.us>
Cc: durai <durai@isofttech.com>, linux-mips@linux-mips.org
Subject: Re: file handling in kernel mode
Date: Mon, 17 Nov 2003 02:06:32 +0100 [thread overview]
Message-ID: <20031117010631.GA20737@linux-mips.org> (raw)
In-Reply-To: <200311170046.hAH0kZX16327@p2.parker.boston.ma.us>
On Sun, Nov 16, 2003 at 07:46:35PM -0500, Brad Parker wrote:
> Shouldn't someone point out that having a driver read a file is
> very, very wrong and a classic FAQ question?
It is.
> Perhaps I'm mistaken but this seems to come up once a year on every port
> list I'm on.
I think it's the first time on this list. In my previous posting I suggested
request_firmware for 2.4.23 / 2.6. For kernels older than this I suggest
arch/i386/kernel/microcode.c as an example for how to easily implement
a character special file.
> Resist the temptation to put code in the driver to access the file
> system.
Amen.
> ps: isn't hotplug already setup to notice when a device comes up and to
> have a shell script run? it's bad enough that the hotplug code runs a
> shell script from the kernel. I can't believe that got through...
>
> (and if you have time, go read the plan 9 design docs. then ask yourself
> what those guys would do :-)
2.6 certainly is quite a bit more plan 9-ish. What would you expect from
Al Viro :-)
Ralf
prev parent reply other threads:[~2003-11-17 1:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 17:42 question regarding put data in the specified section Teresa Tao
2003-11-14 17:42 ` Teresa Tao
2003-11-15 12:53 ` Ralf Baechle
2003-11-16 9:00 ` file handling in kernel mode durai
2003-11-16 9:00 ` durai
2003-11-16 22:51 ` Ralf Baechle
2003-11-17 0:46 ` Brad Parker
2003-11-17 1:06 ` Ralf Baechle [this message]
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=20031117010631.GA20737@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=brad@parker.boston.ma.us \
--cc=durai@isofttech.com \
--cc=linux-mips@linux-mips.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