Date: Tue, 6 Sep 2011 09:09:18 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-hackers@freebsd.org Cc: Daniel Grech <dgre090@gmail.com> Subject: Re: Detach USB Device Driver and Attach it to ugen driver at runtime Message-ID: <201109060909.18300.hselasky@c2i.net> In-Reply-To: <C44D95B8-2351-4BCD-BC44-071304EFD4FD@gsoft.com.au> References: <CAG167sZd4WBSx--ukEb2RXKq0V0-DZJcMYt176bR1Y-snjkFaQ@mail.gmail.com> <C44D95B8-2351-4BCD-BC44-071304EFD4FD@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109060909.18300.hselasky>