On Monday, November 18, 2013 6:07:37 AM Greg KH wrote:
> > I want my software to ignore devices that are already in use by other
> > software. The "other software" might be accessing it via the kernel
> > drivers, or perhaps libusb. My software (in this case) would be using
> > libusb, and need to detach the kernel drivers to claim the interface -
> > even if the kernel driver isn't currently in use.
> 
> What types of devices?

Just tty/serial devices (HID, VCOM, and CDC/ACM)

> And no, there is no "general" way to determine this, sorry, it all
> depends on the type of device, and for some of them, you really can't
> tell (think about a keyboard, when is it "in use"?)

When X has it open?

> > So, I want to detach the driver so I can use it myself, but only if some
> > other software isn't already using it.
> 
> What will you do with the device?

Send it work to process, and get results back.

> Why not just have the user tell you which device you want to claim?

They can do that, but users like automatic stuff by default :/

Luke
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to