From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 18 Nov 2005 02:26:20 +0000 Subject: Re: uDev/ hotplug and modules Message-Id: <20051118022620.GA29322@vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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_id845&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