mordorwww 发表于 2016-02-25 10:32

内核USB驱动的数据结构说不通啊

本帖最后由 mordorwww 于 2016-02-25 10:33 编辑

structusb_device----->config/actconfig(usb_host_config)-------->struct usb_interface *interface;-------------->struct device dev;                /* interface specific device info*/
    每个usb_device包含多个usb_interface ,每个usb_interface 包含一个struct device 结构 ,非指针



struct usb_device------->struct device dev;


    每个usb_device包含一个struct device 结构 ,非指针


这是啥意思呢?到底每个usb_device对应一种 设备对应一个驱动( 一一对应)
还是每个usb_interface 对应一种 设备对应一个驱动( 一一对应)?
如果是后者 ,驱动又 怎么和usb_interface 一一对应?因为 usb_interface 没有厂商号和设备标示
页: [1]
查看完整版本: 内核USB驱动的数据结构说不通啊