1STRUCT USB_CTRLREQUE(9) Kernel Mode Gadget API STRUCT USB_CTRLREQUE(9)
2
3
4
6 struct_usb_ctrlrequest - SETUP data for a USB device control request
7
9 struct usb_ctrlrequest {
10 __u8 bRequestType;
11 __u8 bRequest;
12 __le16 wValue;
13 __le16 wIndex;
14 __le16 wLength;
15 };
16
18 bRequestType
19 matches the USB bmRequestType field
20
21 bRequest
22 matches the USB bRequest field
23
24 wValue
25 matches the USB wValue field (le16 byte order)
26
27 wIndex
28 matches the USB wIndex field (le16 byte order)
29
30 wLength
31 matches the USB wLength field (le16 byte order)
32
34 This structure is used to send control requests to a USB device. It
35 matches the different fields of the USB 2.0 Spec section 9.3, table
36 9-2. See the USB spec for a fuller description of the different fields,
37 and what they are used for.
38
39 Note that the driver for any interface can issue control requests. For
40 most devices, interfaces donĀ“t coordinate with each other, so such
41 requests may be made at any time.
42
44 David Brownell <dbrownell@users.sourceforge.net>
45 Author.
46
48Kernel Hackers Manual 2.6. June 2019 STRUCT USB_CTRLREQUE(9)