From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Tue, 06 Feb 2001 09:51:47 +0000 Subject: Re: Adding PCMCIA support to the kernel tree -- developers needed. Message-Id: 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 > > > If you wish to wait, why not wait for activation by sysctl ? > > > > That is, sysctl to set the kernel "hotplug" string? Would that > > then invoke "/sbin/hotplug start", or would something else > > need to make sure all the relevant subsystems are well enough > > initialized? > > I assumed this meant the threads would be spawned and wait, as I > suggested, but instead of waiting till the rootfs is mounted, they'd wait > for an explicit trigger from userspace, whether that's setting the > 'hotplug' string or a new 'hotplug_trigger' sysctl. But that means we have > kernel threads collecting waiting for userspace to trigger them, and I'm > not sure that's a good idea. There's no need to wait until after spawning the threads. Check for activation before you spawn. If that check fails, write the request to a buffer. If the trigger is recieved, replay the buffer. HTH Oliver _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel