On Wed, 31 Dec 2008, Alon Bar-Lev wrote: > Hello, > > I am trying to detect USB device removal using its file descriptor within > the /dev/bus/usb/999/999 filesystem. > > I believe this is why the USBDEVFS_DISCSIGNAL ioctl is available. > > But it looks like the poll never wakes up and the signal is never called. > > I noticed some people who succeeded in making this work, but I cannot figure > out what is wrong. > > I am using linux-2.6.28. > > Can anyone help? Maybe there is a different way to achieve this task. I just tried running your program on vanilla 2.6.28, and it worked perfectly. When I unplugged the device, I got the "After poll" message followed by "SIGNAL!". Are you sure you're using the right file name? Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html