Re: usbfs, claiming entire usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 5 May 2009, Pantelis Koukousoulas wrote:

> > Not to mention some unsettled issues, like what should
> > happen if a program grabs a port and another program has already
> > claimed an interface on the device attached to that port.  Or if
> > another program simply has the device file open.
> 
> The grab should fail most likely, in both the above cases. It is unlikely
> that the user really wanted it if they are actively using the device in
> some other way. So, just return an error code?

Maybe a different user is using the device.

> It looks though that detecting these cases might be a bit tricky.

Yes, it might.  The easiest approach is to unbind the earlier claims.  
After all, we'll have to do the same thing if any of the interfaces are
bound to kernel drivers.

Alan Stern

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux