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

NAME

6       usb_gadget_disconnect - software-controlled disconnect from USB host
7

SYNOPSIS

9       int usb_gadget_disconnect(struct usb_gadget * gadget);
10

ARGUMENTS

12       gadget
13           the peripheral being disconnected
14

DESCRIPTION

16       Disables the D+ (or potentially D-) pullup, which the host may see as a
17       disconnect (when a VBUS session is active). Not all systems support
18       software pullup controls.
19
20       This routine may be used during the gadget driver bind call to prevent
21       the peripheral from ever being visible to the USB host, unless later
22       usb_gadget_connect is called. For example, user mode components may
23       need to be activated before the system can talk to hosts.
24
25       Returns zero on success, else negative errno.
26

AUTHOR

28       David Brownell <dbrownell@users.sourceforge.net>
29           Author.
30
32Kernel Hackers Manual 3.10         June 2019           USB_GADGET_DISCONNEC(9)
Impressum