From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 17 Jun 2004 23:40:08 +0000 Subject: Re: Delayed hotplug events Message-Id: <20040617234008.GB5286@kroah.com> List-Id: References: <40D17ECC.20501@suse.de> In-Reply-To: <40D17ECC.20501@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Jun 17, 2004 at 09:56:25PM +0200, Oliver Neukum wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am Donnerstag, 17. Juni 2004 20:09 schrieb Greg KH: > > > And if the latter, how should it be solved properly? > > > > In userspace, with things like udevd and just simply sleeping for a > > short ammount of time to allow the kernel to catch up to userspace :) > > That, frankly, is voodoo. As for reordering, it is debateable. But the > need to wait for a _guessed_ amount of time is a clear design error. > There's no upper bound you could give for appearance of the sysfs > files. I agree there is no upper bound, just make sure that the directory for the device is still present, and you can sleep for as long as you want. :) greg k-h ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ 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