Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Apr 2016 16:15:07 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Karl Denninger <karl@denninger.net>, freebsd-usb@freebsd.org
Subject:   Re: Prevent attach of modem serial emulated device on USB attach?
Message-ID:  <5724BDEB.3060502@selasky.org>
In-Reply-To: <08f991ca-0c97-3d29-8b56-5a4ac9f904f3@denninger.net>
References:  <08f991ca-0c97-3d29-8b56-5a4ac9f904f3@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5724BDEB.3060502>