USB headache...

From: Daniel Miller (dan_at_invalid.com)
Date: 04/29/04


Date: 29 Apr 2004 15:18:59 -0500

I'm trying to access USB bulk-storage devices from a user-space
application. I'm using libusb API, and I can open the device successfully,
but when I try to claim_interface, it fails with EBUSY, which I *think*
means someone else already claimed it... I have several somewhat
overlapping questions about what's going on right now, could you help me
with some of them??

- Who claimed the interface, was it usb-storage?? I unloaded that driver
before I ran my code, but I noticed that it auto-reloads. However, I don't
see claim_interface (in any of its permutations) called by that driver.

- Is there some way I can tell the 'world' to not intercept devices on my
sockets, so I can get to them myself?? I'm guessing that this is all
involved in "hotplugging", but I haven't been able to make enough sense of
their documentation to know what to do about that. Hopefully I will
eventually get signed up with their mailing list, but I'm hoping for
quicker feedback here...

Any help with this would be *greatly* appreciated!! I think, if I can just
get the interface claimed, I'll be able to do my other research pretty
easily...



Relevant Pages

  • Re: [PATCH][3/7] perfctr-2.7.2 for 2.6.6-mm2: x86_64
    ... No. Managing the mapping to physical counters can and should be ... Due to hardware irregularities, user-space ... to invoke the low-level driver before the control state dies. ...
    (Linux-Kernel)
  • my opinion about VGA devices
    ... framebuffer devices (Generic VESA framebuffer driver and Video card ... user-space library which are together the 'driver'. ... graphics device from the kernel. ... Maybe you have noticed that I haven't used 'VGA' even once, ...
    (Linux-Kernel)
  • my opinion about VGA devices
    ... framebuffer devices (Generic VESA framebuffer driver and Video card ... user-space library which are together the 'driver'. ... graphics device from the kernel. ... Maybe you have noticed that I haven't used 'VGA' even once, ...
    (Linux-Kernel)
  • Re: DRM drivers with closed source user-space: WAS [Patch 0/3] Resubmit VIA Chrome9 DRM via_chr
    ... It appears that GPL'd DRM drivers for closed-source user-space ... User space interface validation and maintainability. ... If such driver is accepted it immediately puts compatibility burden on drm ... documented security analysis by the driver writer should be ...
    (Linux-Kernel)
  • DRM drivers with closed source user-space: WAS [Patch 0/3] Resubmit VIA Chrome9 DRM via_chrome9
    ... It appears that GPL'd DRM drivers for closed-source user-space clients are becoming more common, and the situation appears to be causing a lot of unnecessary work from people wanting their drivers in the mainstream kernel. ... Security. ... User space interface validation and maintainability. ... I think from a security point of view, open docs and a thorough documented security analysis by the driver writer should be sufficient. ...
    (Linux-Kernel)