因工作需要,查看挂载在ubuntu13.04上的一款usb设备的Product和Vendor信息,发现cat /proc/bus/usb/devices文件不存在
后来发现在linux2.6.31以后的版本 相关信息要在usb-devices中查看
man usb-devices信息截取
usb-devices(1) Linux USB Utilities usb-devices(1)
NAME
usb-devices - print USB device details
SYNOPSIS
usb-devices
DESCRIPTION
usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them.
...
/proc/bus/usb/devices
Location where the usb/devices file can normally be found for Linux kernels before 2.6.31, if usbfs is mounted.
输出信息:
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 13 Spd=12 MxCh= 0 D: Ver= 0.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=23d8 ProdID=0285 Rev=01.00 S: Manufacturer=CREATOR(CHINA)TECH CO.,LTD S: Product=CRT-285 S: SerialNumber=S130622000 C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=400mA I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid