From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Huber Date: Thu, 10 May 2007 20:03:24 +0000 Subject: USB driver and udev_run_devd Message-Id: <46437A8C.2070402@vanteon.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org I hope this is the correct place for this... I am currently developing a driver for a USB dongle. My development system is based on FC6, fully up-to-date. Everything seems to work fine until I unload the driver (actual device still plugged in). I end up with a "/lib/udev/udev_run_devd" process running rouge and consuming mass amounts of CPU time. After tracing udev events I'm speculating that there is a problem when the system re-adds the device end-points back into the system. (trace below) The 51-hotplug.rules handles (by ignoring) SUBSYSTEM types of 'module' and 'drivers' but not 'usb_endpoint'. I'm guessing that when the rules in the hotplug container get checked, the event with SUBSYSTEM=3Dusb_endpoint causes udev_run_devd to execute but there is something missing or incorrectly configured causing it to loop infintely. Could anyone please tell me what is really happening and how I might prevent udev_run_devd from running (or at least get it to exit normally). Thank You. Greg From strace of udev_run_devd getdents64(3, /* 170 entries */, 4096) =3D 4080 getdents64(3, /* 170 entries */, 4096) =3D 4080 getdents64(3, /* 170 entries */, 4096) =3D 4080 getdents64(3, /* 170 entries */, 4096) =3D 4080 ... below is a trace from udevmonitor UEVENT[1178825388.167826] remove@/bus/usb/drivers/DLP-D USB Security Dongle ACTION=3Dremove DEVPATH=3D/bus/usb/drivers/DLP-D USB Security Dongle SUBSYSTEM=3Ddrivers SEQNUM=1220 UEVENT[1178825388.168538] remove@/module/dlpd/drivers ACTION=3Dremove DEVPATH=3D/module/dlpd/drivers SUBSYSTEM=3Dmodule SEQNUM=1221 UEVENT[1178825388.169668] remove@/module/dlpd ACTION=3Dremove DEVPATH=3D/module/dlpd SUBSYSTEM=3Dmodule SEQNUM=1222 UDEV [1178825388.174263] remove@/class/usb_endpoint/usbdev4.6_ep81 UDEV_LOG=3D3 ACTION=3Dremove DEVPATH=3D/class/usb_endpoint/usbdev4.6_ep81 SUBSYSTEM=3Dusb_endpoint SEQNUM=1216 MAJOR%3 MINOR% UDEVD_EVENT=3D1 DEVNAME=3D/dev/usbdev4.6_ep81 UDEV [1178825388.186712] remove@/class/usb_endpoint/usbdev4.6_ep02 UDEV_LOG=3D3 ACTION=3Dremove DEVPATH=3D/class/usb_endpoint/usbdev4.6_ep02 SUBSYSTEM=3Dusb_endpoint SEQNUM=1217 MAJOR%3 MINOR& UDEVD_EVENT=3D1 DEVNAME=3D/dev/usbdev4.6_ep02 UDEV [1178825388.193601] remove@/class/usb UDEV_LOG=3D3 ACTION=3Dremove DEVPATH=3D/class/usb SUBSYSTEM=3Dclass SEQNUM=1215 UDEVD_EVENT=3D1 UDEV [1178825388.199113] add@/class/usb_endpoint/usbdev4.6_ep81 UDEV_LOG=3D3 ACTION=ADd DEVPATH=3D/class/usb_endpoint/usbdev4.6_ep81 SUBSYSTEM=3Dusb_endpoint SEQNUM=1218 MAJOR%3 MINOR% UDEVD_EVENT=3D1 DEVNAME=3D/dev/usbdev4.6_ep81 UDEV [1178825388.253372] add@/class/usb_endpoint/usbdev4.6_ep02 UDEV_LOG=3D3 ACTION=ADd DEVPATH=3D/class/usb_endpoint/usbdev4.6_ep02 SUBSYSTEM=3Dusb_endpoint SEQNUM=1219 MAJOR%3 MINOR& UDEVD_EVENT=3D1 DEVNAME=3D/dev/usbdev4.6_ep02 -- Greg Huber Principal Engineer Vanteon Corporation 255 Woodcliff Drive, Suite 200 Fairport, NY 14450 Office: (585) 419-9564 Fax: (585) 248-0537 www.vanteon.com - Embedded for Your Future ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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