Current-Users archive

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

Re: libusb-1.0 for NetBSD

On Thu, May 31, 2012 at 07:48:00AM +0800, Xiaofan Chen wrote:
> The other possibility is to learn from Mac OS X where
> you can use a code-less kext to prevent the existing
> kernel driver from attaching to a device (or a class
> of device) based on certain criteria.

I don't know what "code-less kext" is, but in NetBSD you can do this with
a custom kernel configuration that has a nailed down ugen entry, e.g.:

ugen3   at uhub? port ? vendor 0x06c2 product 0x0031 flags 1

The vendor and product you can get using the USB_GET_DEVICE_DESC ioctl, which
I recently copied over to uhid devices.

Unfortunately userconf (boot -c) doesn't seem to be capable enough to do this
so you actually need to build a new kernel for it.


Home | Main Index | Thread Index | Old Index