From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 16 Mar 2007 10:35:03 +0000 Subject: Re: udev or kernel broken with rsdl 0.30 patch Message-Id: <1174041303.21549.11.camel@lov.localdomain> List-Id: References: <20070315104654.19025CA4097@mx1.ciphirelabs.net> In-Reply-To: <20070315104654.19025CA4097@mx1.ciphirelabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, 2007-03-16 at 11:06 +0100, Andreas Jellinghaus wrote: > Am Donnerstag, 15. M=C3=A4rz 2007 20:57 schrieb Kay Sievers: > > > why are the endpointes removed and added in the working case? > > > the device is unchanged. > > > > Don't know what's with the endpoints, but what device event do you miss? > > It looks like it's all there in the udevmonitor output, right? >=20 > it was not a missing event. Well, you wrote: "why udev/kernel emit less events?" :) > the problem is the events are the same, the > hardware is the same, the configuration is the same, and still in one > cases udev runs the openct hook, and in the other case it does not. >=20 > maybe it has trouble looking at the sysfs files or something? >=20 > if I strace udevd it always works fine. if the system has high load too. > looks like a classic race condition to me. You mean, that the /proc file is not there, when you get the event with $DEVICE? It is "broken" since it exists, you have to wait until it shows up. Or don't use it at all, and hook into the "usb_device" event and use the files in /dev with the same layout, instead of the crappy usbfs files. Thanks, Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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