From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev and dbus
Date: Sat, 13 Mar 2004 18:29:05 +0000 [thread overview]
Message-ID: <1079202500.1783.16.camel@pim> (raw)
In-Reply-To: <20040217214449.GB12411@wonderland.linux.it>
On Sat, 2004-03-13 at 16:22 +0100, David Zeuthen wrote:
> On Fri, 2004-03-12 at 17:40, Daniel Stekloff wrote:
> > Hi, I'm curious - are the projects higher in the stack like hal only concerned
> > with those devices named by udev? Or, are they interested in all system
> > devices? The two sets aren't the same, udev is only concerned with a subset
> > of system devices and doesn't manage or name all devices represented in /sys.
> > I'd imagine that hal would be interested in all devices reported through /sys
> > and if this is the case, shouldn't those projects then place their scripts in
> > /etc/hotplug.d?
> >
>
> hal does care about bus devices (e.g. non-class devices like USB, PCI
> etc.) and hal does install a symlink, hal.hotplug, in
> /etc/hotplug.d/default to catch these and fire off messages to the hal
> daemon.
>
> Now, the problem today is that this script is invoked before
> udev.hotplug, because, I guess, h is before u.
>
> What I want to do is to symlink another script into /etc/udev.d to fire
> off a message to the hal daemon. That would give me two scripts, not
> just one, which is fine and nice.
What is the nice part of two scripts, when you can live with one?
> The alternative Kay is suggesting isn't necessarily nice; I would invoke
> udevinfo from hal.hotplug but I would have to apply some intelligence
> because not every hotplug event corresponds to udev creating/removing
> device nodes.
Only if you need any info from the udevdb you _may_ ask for it with
udevinfo.
The creation an removal of the dynamic nodes are only the first part of
a hotplug handling sequence, not a magic stack inside of any complex
event logic.
The kernel notifies you about a new device to use in _userspace_. So
it's natural to create the "gate" to this device first. Nobody needs to
know who creates the device nodes. And why put one script in some magic
udev.d/ script engine and the other in the hotplug.d/ script machinery?
What exactly is the problem to execute udevsend as the first program and
all following scripts can be sure to have all attribute and nodes
created? udev is so fast that you will not notice it, and every hotplug
event for a different devpth will run in parallel.
> Hotplug events and device node creation/destruction are
> two conceptually different things and they should have separate
> directories for callouts.
There are _a_ sequence, not different things.
I still strongly disagree.
thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-03-13 18:29 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-17 21:44 udev and DBUS Marco d'Itri
2004-02-26 17:00 ` Marco d'Itri
2004-02-28 14:13 ` David Zeuthen
2004-03-10 16:31 ` udev and dbus David Zeuthen
2004-03-10 17:52 ` Kay Sievers
2004-03-10 19:18 ` Greg KH
2004-03-10 19:56 ` Greg KH
2004-03-10 19:57 ` Marco d'Itri
2004-03-10 20:00 ` Marco d'Itri
2004-03-10 20:02 ` Greg KH
2004-03-10 22:25 ` Patrick Mansfield
2004-03-10 22:37 ` Kay Sievers
2004-03-10 22:48 ` Greg KH
2004-03-11 1:28 ` Greg KH
2004-03-11 2:35 ` Kay Sievers
2004-03-11 8:55 ` Martin Waitz
2004-03-11 14:30 ` Kay Sievers
2004-03-11 15:06 ` David Zeuthen
2004-03-11 17:14 ` Kay Sievers
2004-03-11 17:23 ` Kay Sievers
2004-03-11 17:30 ` David Zeuthen
2004-03-11 17:41 ` David Zeuthen
2004-03-11 17:44 ` Kay Sievers
2004-03-11 18:12 ` Kay Sievers
2004-03-11 18:22 ` David Zeuthen
2004-03-11 18:32 ` Greg KH
2004-03-11 18:35 ` Greg KH
2004-03-11 18:36 ` Greg KH
2004-03-11 18:37 ` Kay Sievers
2004-03-11 18:38 ` Kay Sievers
2004-03-11 18:40 ` Kay Sievers
2004-03-11 18:47 ` Greg KH
2004-03-11 18:56 ` Kay Sievers
2004-03-12 0:18 ` Greg KH
2004-03-12 11:37 ` David Zeuthen
2004-03-12 15:54 ` Kay Sievers
2004-03-12 16:40 ` Daniel Stekloff
2004-03-12 17:17 ` Marco d'Itri
2004-03-12 17:26 ` Marco d'Itri
2004-03-13 15:22 ` David Zeuthen
2004-03-13 18:29 ` Kay Sievers [this message]
2004-03-14 19:59 ` Olaf Hering
2004-03-14 20:06 ` Kay Sievers
2004-03-14 20:11 ` Olaf Hering
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=1079202500.1783.16.camel@pim \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).