Detach USB Device Driver and Attach it to ugen driver at runtime
Hans Petter Selasky
hselasky at c2i.net
Tue Sep 6 07:15:24 UTC 2011
On Tuesday 06 September 2011 03:53:55 Daniel O'Connor wrote:
> On 05/09/2011, at 23:10, Daniel Grech wrote:
> > Hi, I'm using libusb to gain access to raw USB Data from userspace. My
> > problem is that this library only works with devices which are treated as
> > generic devices ("handled by the ugen driver"). I need a mechanism that
> > will allow me to detach any device specific drivers that are attached to
> > a device and attach the ugen driver instead. I want to do this without
> > re-compiling the FreeBSD Kernel. Thanks in advance for your help.
>
> You can access the device via ugen even if a kernel driver has attached to
> it.
>
> I suspect you wouldn't be able to if the kernel driver that did attach is
> in use, but I am not sure.
You can attach even if a kernel driver is attached, though it is best to only
have one driver attached at the same time.
--HPS
More information about the freebsd-hackers
mailing list