1USB_GET_STATUS(9)                USB Core APIs               USB_GET_STATUS(9)
2
3
4

NAME

6       usb_get_status - issues a GET_STATUS call
7

SYNOPSIS

9       int usb_get_status(struct usb_device * dev, int recip, int type,
10                          int target, void * data);
11

ARGUMENTS

13       dev
14           the device whose status is being checked
15
16       recip
17           USB_RECIP_*; for device, interface, or endpoint
18
19       type
20           USB_STATUS_TYPE_*; for standard or PTM status types
21
22       target
23           zero (for device), else interface or endpoint number
24
25       data
26           pointer to two bytes of bitmap data
27

CONTEXT

29       !in_interrupt ()
30

DESCRIPTION

32       Returns device, interface, or endpoint status. Normally only of
33       interest to see if the device is self powered, or has enabled the
34       remote wakeup facility; or whether a bulk or interrupt endpoint is
35       halted (“stalled”).
36
37       Bits in these status bitmaps are set using the SET_FEATURE request, and
38       cleared using the CLEAR_FEATURE request. The usb_clear_halt function
39       should be used to clear halt (“stall”) status.
40
41       This call is synchronous, and may not be used in an interrupt context.
42
43       Returns 0 and the status value in *data (in host byte order) on
44       success, or else the status code from the underlying usb_control_msg
45       call.
46
48Kernel Hackers Manual 3.10         June 2019                 USB_GET_STATUS(9)
Impressum