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 type, int target,
10                          void * data);
11

ARGUMENTS

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

CONTEXT

26       !in_interrupt ()
27

DESCRIPTION

29       Returns device, interface, or endpoint status. Normally only of
30       interest to see if the device is self powered, or has enabled the
31       remote wakeup facility; or whether a bulk or interrupt endpoint is
32       halted (“stalled”).
33
34       Bits in these status bitmaps are set using the SET_FEATURE request, and
35       cleared using the CLEAR_FEATURE request. The usb_clear_halt function
36       should be used to clear halt (“stall”) status.
37
38       This call is synchronous, and may not be used in an interrupt context.
39
40       Returns the number of bytes received on success, or else the status
41       code returned by the underlying usb_control_msg call.
42
44Kernel Hackers Manual 2.6.       November 2011               USB_GET_STATUS(9)
Impressum