On Thu, 1 Jan 2009, Alon Bar-Lev wrote: > On 1/1/09, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > > 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? > > Thank you for trying! > > Meanwhile I just discovered another issue... I think this is the root cause... > > If I compile the kernel without CONFIG_USB_DEVICEFS it does not work > for the device. Ooh, yes, that's right. I had forgotten that usbfs is a Kconfig option. If you don't set CONFIG_USB_DEVICEFS then you don't get usbfs. But you should still get the disconnect signal -- that's what the commit you found was supposed to fix. > Shouldn't the CONFIG_USB_DEVICEFS not affect the handling of the device? > I mean shouldn't we stop using CONFIG_USB_DEVICEFS and use udev > thesedays? without any loss of functionality? There _is_ a loss of functionality. Without CONFIG_USB_DEVICEFS you don't get /proc/bus/usb/devices. Anyway, some distributions do follow this course; they don't mount /proc/bus/usb and they provide udev support instead. 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