On Wed, 27 Oct 2004, Geoff Oakham wrote: > > Have you eliminated the possibility of other programs running in the > > background also trying to communicate with your device (some Gnome/hotplug > > programs do that)? > > Yes: I have a single semaphore guarding my data structure and access to > the USB device.. so it's no that. (At least, I've checked this many > times.)
Ah, but other programs may be accessing your device through usbfs without your knowledge, without using your driver, and without being stopped by your semaphore! For example, any time you do "cat /proc/bus/usb/devices" the cat process will try to access every USB device. For the least ambiguity in your results, run your tests in single-user mode and without X. It wouldn't hurt to unmount /proc/bus/usb as well. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel