1USB_GADGET_VBUS_DRAW(9)     Kernel Mode Gadget API     USB_GADGET_VBUS_DRAW(9)
2
3
4

NAME

6       usb_gadget_vbus_draw - constrain controllerĀ“s VBUS power usage
7

SYNOPSIS

9       int usb_gadget_vbus_draw(struct usb_gadget * gadget, unsigned mA);
10

ARGUMENTS

12       gadget
13           The device whose VBUS usage is being described
14
15       mA
16           How much current to draw, in milliAmperes. This should be twice the
17           value listed in the configuration descriptor bMaxPower field.
18

DESCRIPTION

20       This call is used by gadget drivers during SET_CONFIGURATION calls,
21       reporting how much power the device may consume. For example, this
22       could affect how quickly batteries are recharged.
23
24       Returns zero on success, else negative errno.
25

AUTHOR

27       David Brownell <dbrownell@users.sourceforge.net>
28           Author.
29
31Kernel Hackers Manual 2.6.         June 2019           USB_GADGET_VBUS_DRAW(9)
Impressum