usb设备---usb_device

本文介绍了USB设备在内核中的表示——struct usb_device,包括设备号、设备状态、速度、端点、字符串描述符等关键字段,并讨论了其在USB设备管理中的作用。
摘要由CSDN通过智能技术生成
usb_device 结构体描述如下:
    /**
     * struct usb_device - kernel's representation of a USB device
     * @devnum: device number; address on a USB bus
     * @devpath: device ID string for use in messages (e.g., /port/...)
     * @route: tree topology hex string for use with xHCI
     * @state: device state: configured, not attached, etc.
     * @speed: device speed: high/full/low (or error)
     * @tt: Transaction Translator info; used with low/full speed dev, highspeed hub
     * @ttport: device port on that tt hub
     * @toggle: one bit for each endpoint, with ([0] = IN, [1] = OUT) endpoints
     * @parent: our hub, unless we're the root
     * @bus: bus we're part of
     * @ep0: endpoint 0 data (default control pipe)
     * @dev: generic device interface
     * @descriptor: USB device descriptor
     * @config: all of the device's configs
     * @
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值