> On further thought, I think your patch won't work correctly in cases
> where USB controllers are detached. For example, if you attach usb0
> and usb1, and then detach usb0, getusbcount_device() will return 1,
> and usbdevs will try to list devices only on the detached usb0, and
> not on the
Matthew,
On further thought, I think your patch won't work correctly in cases
where USB controllers are detached. For example, if you attach usb0
and usb1, and then detach usb0, getusbcount_device() will return 1,
and usbdevs will try to list devices only on the detached usb0, and
not on the
Hi mrg
You wrote:
> > Look for up to 16 USB controllers, to match the number of device nodes
> > now created by MAKEDEV.
>
> thanks for doing this. you inspired me to get usbdevs to get the
> count from drvctl(8) if available, so next time we don't have to
> patch it again. based upon the code
"Andreas Gustafsson" writes:
> Module Name: src
> Committed By: gson
> Date: Sat Sep 21 16:22:25 UTC 2019
>
> Modified Files:
> src/usr.sbin/usbdevs: usbdevs.c
>
> Log Message:
> Look for up to 16 USB controllers, to match the number of device nodes
> now created by MAKEDEV.