Prevent attach of modem serial emulated device on USB attach?
Hans Petter Selasky
hps at selasky.org
Sat Apr 30 14:11:52 UTC 2016
On 04/30/16 16:06, Karl Denninger wrote:
> So I have managed to get access via ugen to one of the USB devices I
> want to talk to.
>
> I would like to generalize that in a library, but am confounded by a
> /second /device that comes up "looking like a modem", although it is
> not. This is convenient if you want to open and deal with it like a
> modem, but unfortunately that attachment appears to prevent me from
> successfully using it with the ugen interface at the same time, as the
> attachment looks like it "eats" the inbound byte stream.
>
> Is there a reasonably-easy way to /prevent /FreeBSD from declaring this
> device eligible to be attached as if it was a character-style modem,
> leaving it only on ugen? I have figured out how to use devd to change
> permissions on attach, but not how to prevent it from attaching a
> generic USB device to a specific driver.
>
Hi,
Did you try:
libusb_detach_kernel_driver() or
libusb20_dev_detach_kernel_driver()
--HPS
More information about the freebsd-usb
mailing list