Hi, I am trying to write a usb device driver that is loaded as a module into the kernel. The user mode application that communicates with the driver is supposed to be running in the background all the time, and send/receive commands whenever the device is connected.
My question is how do I find out in the application whether the device is connected or not? I have created through mknod a link to the driver and use the read/write/ioctl commands. However, if I disconnect the device while the application is running, it crashes and sometimes the kernel gets stuck and I need to reboot it. I am using RedHat 7.1 distribution, with kernel v2.4.2. I would be grateful if someone could help me with this. Thanks in advance, Amira. _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel