From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 20 Mar 2006 01:00:19 +0000 Subject: Re: DEVICE and usb strategy Message-Id: <20060320010019.GC11927@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 Sun, Mar 19, 2006 at 09:36:26PM +0100, Andreas Jellinghaus wrote: > what is the current strategy for usb and DEVICE in udev? Ignore $DEVICE. > for example: > - /proc/bus/usb not mounted > - /dev/bus/usb is present > - what should be in DEVICE ? > > currently I have a situation with (k)ubuntu dapper / udev 079 > in this case: my application gets called, but with DEVICE pointing > to /proc/bus/usb/... and that does not exist. Sure, it didn't make sense in the first place to add an absolute path to the kernel code. > Sure, I can add magic code to my application. But before doing so > I would first like to know if there is a consensus what should be > in DEVICE and whos job it is to set it properly / handle alternative > locations. so, what is the strategy on this? Ignore $DEVICE and $INTERFACE entirely and use the values provided by the kernel event and the sysfs device pointed to by $DEVPATH. Kay ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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