最終更新:2018-01-12 (金) 13:20:05 (2295d)
usbfs
Top / usbfs
- セキュリティの問題でDeprecated
利用
- CONFIG_USB_DEVICEFS (Linux 2.6.0〜Linux 3.4)
- Linux 2.6.31でDeprecated
- 後継はsysfs
ディレクトリ構造
Linux/proc/bus/usb
- Linux/proc/bus/usb/devices
- Linux/proc/bus/usb/BBB/DDDとか
- BBB represents the USB number and DDD represents the USB device number.
メモ
# mount -t usbfs none /proc/bus/usb
ドキュメント
- kernel.org/doc/Documentation/usb/proc_usb_info.txt
- http://free-electrons.com/kerneldoc/latest/DocBook/usb/
概要
- The usbfs filesystem for USB devices is traditionally mounted at Linux/proc/bus/usb.
- It provides the Linux/proc/bus/usb/devices file, as well as the /proc/bus/usb/BBB/DDD files.
- In many modern systems the usbfs filsystem isn't used at all.
- Instead USB device nodes are created under /dev/usb/? or someplace similar.
- The "devices" file is available in debugfs, typically as /sys/kernel/debug/usb/devices.
最近のLinux
ソースコード
- drivers/usb/core/inode.c (〜Linux 3.4)
- usb_fs_type?
- drivers/usb/core/devices.c
- drivers/usb/core/devio.c
初期化
debugfsのUSB部分
Linux/sys/kernel/debug/usb/devices
- debugfs
- Ubuntu 9.10 is mounting debugfs instead of usbfs
- usb_initでusb_debugfs_init();