linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevstart vs udevsend vs /sbin/hotplug
@ 2005-09-15 15:42 Jim McQuillan
  2005-09-15 16:13 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jim McQuillan @ 2005-09-15 15:42 UTC (permalink / raw)
  To: linux-hotplug

I'm still trying to wrap my brain around udev and all its friends.

i've got an LTSP thin client booting, and i've got udev-069.  As part of
the startup process, I mount the /sys, /dev, /proc filesystems,
and then I run /etc/start_udev, which populates my /dev tree.

I've found the udev rules.d, and added some RUN commands, so I could
watch what is happening.  I've also seed udevmonitor, and it shows
events, when I plug/unplug my USB memory stick.

But, device nodes don't get created.  If I then do this:

     modprobe sd_mod
     modprobe usb-storage

Then, the device nodes are all created.

So, I know that udev is doing its thing.

What I can't figure out is where the hotplug scripts fit in.

I read Greg's article on LWN  (http://lwn.net/Articles/123932/).
Great article btw.  It helped me understand alot about the process of
hotplugging. I really could have used that article last year, when we
did our first hotplug system for LTSP.

I was understanding just fine, until I got to the 2nd-to-last paragraph.
It says to use '/sbin/udevstart' in /proc/sys/kernel/hotplug.  BUT,
udevstart looks like it should only be run once, at system startup.
I'm thinking /sbin/udevsend it the correct thing to handle hotplug
events, but I can't see how (or even if) it interfaces with the hotplug
scripts.  So, I can't see where the kernel modules get loaded.
I've started down the path of tracing the source code, to see what
happens, but the usual outcome is my brain explodes :)

So, someone, please give me a clue about when the kernel modules get
loaded.

I really think i'm within a few hours of understanding the whole
process.  Then, I can get on with my work of pushing the events up to
the LTSP server, where the users session is running.

Thanks,
Jim McQuillan
jam@Ltsp.org


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-15 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-15 15:42 udevstart vs udevsend vs /sbin/hotplug Jim McQuillan
2005-09-15 16:13 ` Kay Sievers
2005-09-15 16:48 ` Jim McQuillan
2005-09-15 17:52 ` Greg KH

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).