From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kay Sievers" Date: Thu, 20 Nov 2008 06:30:19 +0000 Subject: Re: WAIT_FOR_SYSFS error, Is my udev rule wrong? Message-Id: List-Id: References: <1227160064l.14872l.4l@mofo> In-Reply-To: <1227160064l.14872l.4l@mofo> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Nov 20, 2008 at 06:47, Karl O. Pinc wrote: > I've written a udev rule and am looking > for comment by those with more experience > to see if there are improvements to be made. > KERNEL="ttyUSB0", ACTION="add", WAIT_FOR_SYSFS="subsystem/ttyUSB0" You can only wait for attributes ATTR{} of the device you receive the event for. "subsystem" is a symlink, and it is created long before the event is sent. > looking at device '/class/tty/ttyUSB0': > KERNEL="ttyUSB0" > SUBSYSTEM="tty" > DRIVER="" > ATTR{dev}="188:0" The device you get the event for has only a single attribute, called "dev" and there is never a need to wait for that. WAIT_FOR* is to work around (in most cases broken and should be fixed) sysfs timing issues in the kernel. Seems, there is nothing in your event where that would be needed. What are you trying to wait for? Kay