From: Robert Love <rml@ximian.com>
To: Tim Hockin <thockin@hockin.org>
Cc: dsaxena@plexity.net, Michael Clark <michael@metaparadigm.com>,
akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] kernel events layer
Date: Sun, 25 Jul 2004 15:08:21 -0400 [thread overview]
Message-ID: <1090782501.25479.23.camel@lucy> (raw)
In-Reply-To: <20040725181139.GC1269@hockin.org>
On Sun, 2004-07-25 at 11:11 -0700, Tim Hockin wrote:
> yeah. I suppse that's true. What's the meaning of the 'source' object,
> generically?
The source of the signal. The object, in fact - very similar to kobject
in concept, but we cannot use that since one does not exist for all uses
(plus, Greg tells me it would be expensive to constantly build the
kobject path for each event).
The only hard requirement is that it is unique, like any URI. But it
would be nice if it was self-descriptive and double nice if it looked
like URI's used by other object systems. The "drivers/char/cdrom" style
fits that bill.
> So, when I was at Sun (no, I'm not at Sun anymore) there was lots of talk
> of driver hardening and fault management. At the time, the team in
> question looked at the various event systems that currently exist in the
> kernel or in some patches. This list might be incomplete, but it's off
> the top of my head.
>
> - Netlink
> - ACPI (/proc/acpi/event)
> - hotplug
> - IPMI (not merged maybe?)
> - relayfs (not merged)
> - evlog (last I saw, this was in big flux)
>
> Now you're proposing netlink as the kevent subsystem.
>
> Wouldn't it be nice if everything could converge? Ok maybe not
> EVERYTHING, but some of these?
Yup.
So the last two are not being merged. It seems unlikely that they will
be, but if they were, we could use them as the backbone of the event
system. The medium is not really what interests me (or you, either - I
think we both are interested in the results, right?). Technically
speaking, though, netlink does seem the best choice. I look at kevent
as serving the same purpose as these last two.
I don't know much about IPMI, but I thought it was a hardware spec. I'm
not sure it counts here. If it communicates with user-space, it would
be nice if it used netlink or /proc or even kevent and not its own
thing.
So that leaves ACPI and hotplug. ACPI absolutely should switch to using
kevent. It is the perfect user, right? Send the ACPI events out via
kevent. You wouldn't even need acpid - just have policy agents
listening on D-BUS or directly on the netlink socket or whatever.
As for hotplug, I'll leave that one to Greg. He has some thoughts here.
> These are the things I can see kevents being used for:
>
> - Stateless messages which only matter if someone is listening. Examples
> of this are "media changed" and stuff like that.
>
> - Fault and error that matter no matter what, and can not afford to be
> dropped. Examples are things like ECC errors, significant
> driver/subsystem errors, etc.
>
> - System state messages, which really do want someone to be listening, but
> are otherwise discoverable. Examples of this are "disk full" and
> similar.
>
> So can kevents be used for all of these? The fact that netlink does not
> buffer events if there are no listeners (not saying it should..) makes it
> unreliable for fault events. Can these all be converged?
I think kevents can (and should) be used for all of these. But the lack
of buffering is something we need to look into.
> Sorry for rambling - kernel events has been on my mind for some time.
Mine too. All good input, thanks.
Robert Love
next prev parent reply other threads:[~2004-07-25 19:07 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-23 17:41 [patch] kernel events layer Robert Love
2004-07-23 18:25 ` Tim Hockin
2004-07-23 18:31 ` Muli Ben-Yehuda
2004-07-23 18:35 ` Robert Love
2004-07-23 21:32 ` Dan Aloni
2004-07-24 2:47 ` Robert Love
2004-07-24 4:42 ` Keith Owens
2004-07-24 5:00 ` Robert Love
2004-07-24 8:11 ` Andrew Morton
2004-07-24 5:37 ` Robert Love
2004-07-24 6:02 ` Robert Love
2004-07-24 9:43 ` Wichert Akkerman
2004-07-24 20:21 ` James Morris
2004-07-25 2:12 ` Robert Love
2004-07-24 6:53 ` Paul Jackson
2004-07-24 11:37 ` Bernd Petrovitsch
2004-07-24 3:02 ` Michael Clark
2004-07-24 3:14 ` Robert Love
2004-07-24 9:15 ` Michael Clark
2004-07-24 15:08 ` Deepak Saxena
2004-07-24 15:45 ` Robert Love
2004-07-24 17:33 ` Ryan Anderson
2004-07-24 17:46 ` Tim Hockin
2004-07-24 18:19 ` Robert Love
2004-07-25 18:11 ` Tim Hockin
2004-07-25 19:08 ` Robert Love [this message]
2004-07-27 5:09 ` Daniel Stekloff
2004-07-24 17:54 ` Deepak Saxena
2004-07-24 18:13 ` Robert Love
2004-07-26 20:08 ` Rutger Nijlunsing
2004-07-26 20:10 ` Robert Love
2004-08-09 13:29 ` Pavel Machek
2004-08-09 19:47 ` Robert Love
2004-07-24 3:03 ` Andrew Morton
2004-07-24 2:14 ` Robert Love
2004-07-24 5:15 ` Chris Wedgwood
2004-07-24 5:41 ` Robert Love
2004-07-24 5:45 ` Chris Wedgwood
2004-07-24 3:11 ` [patch] kernel events layer, updated Robert Love
2004-07-24 7:58 ` Deepak Saxena
2004-07-24 8:23 ` Deepak Saxena
-- strict thread matches above, loose matches on Subject: below --
2004-07-26 6:04 [patch] kernel events layer Perez-Gonzalez, Inaky
2004-07-26 6:09 ` Andrew Morton
2004-07-26 23:00 ` Matt Mackall
2004-07-26 7:31 Perez-Gonzalez, Inaky
2004-07-26 14:50 ` Robert Love
2004-07-26 16:12 ` Greg KH
2004-07-26 18:13 ` Oliver Neukum
2004-07-26 18:15 ` Robert Love
2004-07-26 19:03 ` Greg KH
2004-07-26 20:44 ` Tim Hockin
2004-07-27 18:15 ` Mike Waychison
2004-07-27 18:35 ` Oliver Neukum
2004-07-27 18:37 ` Tim Hockin
2004-07-26 22:58 Perez-Gonzalez, Inaky
2004-07-27 7:08 ` Deepak Saxena
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=1090782501.25479.23.camel@lucy \
--to=rml@ximian.com \
--cc=akpm@osdl.org \
--cc=dsaxena@plexity.net \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@metaparadigm.com \
--cc=thockin@hockin.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