I have a line in my code:&nbsp; hid_set_usb_debug(0).<br>However, I have noticed something.<br><br>If I have<br><br>&nbsp;&nbsp; mount -t usbfs none /dev/bus/usb<br><br>then my hid_interrupt_write()/read() get the error:&nbsp;&nbsp; &quot;could not claim interface 0: device or resource busy&quot;.
<br><br><br>If I don't have /dev/bus/usb mounted,<br>I get a different error:&nbsp;&nbsp; &quot;could not detach kernel driver from interface 0: No data available.<br><br><br>Is there some &quot;setup&quot; I need to do so interface 0 is available for me to do interrupt_write()/read()?
<br><br>Mark<br><br><br><div><span class="gmail_quote">On 9/28/06, <b class="gmail_sendername">Charles Lepple</b> &lt;<a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mark S. Townsley wrote:<br>&gt; Hi:<br>&gt;<br>&gt; I am using hid_interrupt_write() and hid_interrupt_read() to talk to my<br>&gt; HID<br>&gt; device.&nbsp;&nbsp;But both calls come back with an error saying:<br>&gt;<br>&gt;&nbsp;&nbsp; &quot;could not claim interface 0: Device or resource busy&quot;.
<br><br>What is the full error message? Is this from setting USB_DEBUG to<br>something non-zero?<br><br>&gt; But my hid_force_open() issues earlier in the same code (and remains open)<br>&gt; was successful.<br>&gt; Shouldn't hid_force_open() already claim the required interface so
<br>&gt; interrupt_write/read can use<br>&gt; the claimed interface?<br><br>Yes, it should be taken care of in hid_force_open().<br><br>--<br>Charles Lepple<br><a href="mailto:clepple@ghz.cc">clepple@ghz.cc</a><br><br><br>
_______________________________________________<br>libhid-discuss mailing list<br><a href="mailto:libhid-discuss@lists.alioth.debian.org">libhid-discuss@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss">
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss</a><br></blockquote></div><br>