最終更新:2024-11-29 (金) 18:13:31 (8d)  

usb_composite_driver
Top / usb_composite_driver

groups configurations into a gadget

定義

struct usb_composite_driver {
        const char                              *name;
        const struct usb_device_descriptor      *dev;
        struct usb_gadget_strings               **strings;
        enum usb_device_speed                   max_speed;
        unsigned                needs_serial:1;

        int                     (*bind)(struct usb_composite_dev *cdev);
        int                     (*unbind)(struct usb_composite_dev *);

        void                    (*disconnect)(struct usb_composite_dev *);

        /* global suspend hooks */
        void                    (*suspend)(struct usb_composite_dev *);
        void                    (*resume)(struct usb_composite_dev *);
        struct usb_gadget_driver                gadget_driver;
};

メンバ

使われどころ

probe