svn commit: r187162 - head/usr.sbin/usbconfig

Sam Leffler sam at
Wed Jan 14 08:54:14 PST 2009

Hans Petter Selasky wrote:
> On Tuesday 13 January 2009, Sam Leffler wrote:
>> Stanislav Sedov wrote:
>>> Hash: SHA1
>>> Hi!
>>> Would it make sense to rename usbconfig to something like "usbcontrol"
>>> to follow the *control tradition (cdcontrol, pmccontrol, vidcontrol, and
>>> so on)?
>> I don't care what it's called but I think it is important that a
>> (sym)link to it named usbdevs w/ provide output that is compatible w/
>> the old tool.
>>     Sam
> I tried to make it similar to "ifconfig".

That's fine.  My point was that when running the new usb stack usbdevs 
does this:

trouble% usbdevs
trouble% usbdevs -v
usbdevs: no USB controllers found

while usbconfig does this:

trouble% usbconfig
ugen0.1: <OHCI root HUB nVidia> at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen1.1: <OHCI root HUB nVidia> at usbus1, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen2.1: <EHCI root HUB nVidia> at usbus2, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON
ugen2.2: <product 0x0058 NEC> at usbus2, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE
ugen2.3: <product 0x0802 vendor 0x05af> at usbus2, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON
ugen2.4: <USB Receiver Logitech> at usbus2, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON
ugen2.5: <ImageMate CompactFlash USB SanDisk Corporation> at usbus2, 
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

None of these match the existing behaviour of usbdevs w/ the current 
stack and we will need that when we switch the default stack to avoid 
breaking 3rd party scripts that parse the output.


More information about the svn-src-head mailing list