* uDev/ hotplug and modules
@ 2005-11-18 2:13 Don Nelke
2005-11-18 2:26 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Don Nelke @ 2005-11-18 2:13 UTC (permalink / raw)
To: linux-hotplug
Greetings,
Does udev (075) and hotplug work without loadable modules?
It seems hotplug is working but udevsend is seg-faulting when invoked in
lieu of the /sbin/hotplug script.
I replaced the call to /sbin/hotplug in the kobject_hotplug function.
The path was hard-coded in our version. I was thinking this was wrong;
shouldn't this be using the contents of /proc/sys/kernel/hotplug?
The object of this effort is to be able to detect when a usb-storage
device is present on boot-up and to mount the device fs. It seems that
udev was the answer since it gives a dynamic node creation if the device
is detected. All a script has to do is check for that node. Is my
understanding correct?
Kernel 2.6.13
udev 075
hotplug-2004_03_29
Don Nelke
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&opÌk
_______________________________________________
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] 2+ messages in thread
* Re: uDev/ hotplug and modules
2005-11-18 2:13 uDev/ hotplug and modules Don Nelke
@ 2005-11-18 2:26 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-11-18 2:26 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 17, 2005 at 06:13:43PM -0800, Don Nelke wrote:
> Does udev (075) and hotplug work without loadable modules?
It should.
> It seems hotplug is working but udevsend is seg-faulting when invoked in
> lieu of the /sbin/hotplug script.
I don't think this happens with a normal kernel. I'm sure someone else
would have noticed it.
> I replaced the call to /sbin/hotplug in the kobject_hotplug function.
> The path was hard-coded in our version. I was thinking this was wrong;
> shouldn't this be using the contents of /proc/sys/kernel/hotplug?
Are you talking about the kernel source? Sure, the event helper is set by
writing to /proc/sys/kernel/hotplug. What the hell is "our version" and
who is doing such a nonsense?
> The object of this effort is to be able to detect when a usb-storage
> device is present on boot-up and to mount the device fs. It seems that
> udev was the answer since it gives a dynamic node creation if the device
> is detected. All a script has to do is check for that node. Is my
> understanding correct?
You can hook into any event device event the kernel sends. Just match
with a udev rule against device properties the kernel exports and call
a script or program with the RUN key.
Kay
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-18 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 2:13 uDev/ hotplug and modules Don Nelke
2005-11-18 2:26 ` Kay Sievers
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).