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

NAME

6       usb_gadget_connect - software-controlled connect to USB host
7

SYNOPSIS

9       int usb_gadget_connect(struct usb_gadget * gadget);
10

ARGUMENTS

12       gadget
13           the peripheral being connected
14

DESCRIPTION

16       Enables the D+ (or potentially D-) pullup. The host will start
17       enumerating this gadget when the pullup is active and a VBUS session is
18       active (the link is powered). This pullup is always enabled unless
19       usb_gadget_disconnect has been used to disable it.
20
21       Returns zero on success, else negative errno.
22

AUTHOR

24       David Brownell <dbrownell@users.sourceforge.net>
25           Author.
26
28Kernel Hackers Manual 3.10         June 2019             USB_GADGET_CONNECT(9)
Impressum