From: Greg KH <greg@kroah.com>
To: linas@austin.ibm.com
Cc: Paul Mackerras <paulus@samba.org>,
linuxppc64-dev@lists.linuxppc.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [2.6] PPC64: log firmware errors during boot.
Date: Thu, 1 Jul 2004 22:36:25 -0700 [thread overview]
Message-ID: <20040702053625.GC30548@kroah.com> (raw)
In-Reply-To: <20040701160614.I21634@forte.austin.ibm.com>
On Thu, Jul 01, 2004 at 04:06:14PM -0500, linas@austin.ibm.com wrote:
> How else could we do this? I have never had to architect a kernel-to-user
> data communications interface, so I don't know what the alternatives
> are. We could queue them up to some file in /proc, which user-space
> reads.
No.
> Or maybe /sys instead ??
No.
> Maybe a stunt with sockets?
Yes, use netlink.
> Some new device in /dev/ that can be opened, read, closed?
No.
> How should the user space daemon indicate that its picked up the
> message and doesn't need it any more?
The kernel doesn't care.
> Write a msg number to a /proc file?
No way.
> Maybe each individual message should go in its own file, and user
> space just rm's that file after its fetched/saved the message.
Hm, that's a neat idea I don't think I've seen before. But no :)
> I dunno, I think any one of these could be whipped up in a jiffy.
> Convincing the user-space to use the interface might be harder.
In summary, use syslog or netlink like the whole rest of the kernel
does. Don't reinvent the wheel again, please.
thanks,
greg k-h
next prev parent reply other threads:[~2004-07-02 5:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 0:10 [PATCH] [2.6] PPC64: log firmware errors during boot linas
2004-06-30 10:55 ` Paul Mackerras
2004-07-01 21:06 ` linas
2004-07-02 5:36 ` Greg KH [this message]
2004-07-02 10:44 ` Paul Mackerras
2004-07-02 14:15 ` Hollis Blanchard
2004-07-02 16:18 ` Nathan Fontenot
2004-07-02 17:29 ` Hollis Blanchard
2004-07-02 18:13 ` linas
2004-07-02 18:27 ` Greg KH
2004-07-02 18:55 ` Dave Hansen
2004-07-02 19:44 ` Greg KH
2004-07-06 13:24 ` Jake Moilanen
2004-07-06 13:41 ` Jake Moilanen
2004-07-08 16:03 ` linas
2004-07-08 17:55 ` Jake Moilanen
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=20040702053625.GC30548@kroah.com \
--to=greg@kroah.com \
--cc=linas@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc64-dev@lists.linuxppc.org \
--cc=paulus@samba.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 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.