login
Header Space

 
 

usb_gadget_disconnect(9)

July 19, 2007 - 1:24am
Submitted by Jeremy on July 19, 2007 - 1:24am.

INDEX

    NAME, SYNOPSIS, ARGUMENTS, DESCRIPTION, AUTHOR, COPYRIGHT

    "USB_GADGET_DISCONNEC" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Kernel Mode Gadget API"

    NAME

    usb_gadget_disconnect - software-controlled disconnect from USB host

    SYNOPSIS

    "int usb_gadget_disconnect(struct usb_gadget * " "gadget" ");"

    ARGUMENTS

    gadget
    the peripheral being disconnected

    DESCRIPTION

    Disables the D+ (or potentially D-) pullup, which the host may see as a disconnect (when a VBUS session is active). Not all systems support software pullup controls.

    This routine may be used during the gadget driver bindfR
    call to prevent the peripheral from ever being visible to the USB host, unless later usb_gadget_connectfR
    is called. For example, user mode components may need to be activated before the system can talk to hosts.

    Returns zero on success, else negative errno.

    AUTHOR

    DavidfR Brownell <dbrownell@users.sourceforge.net>
    Author.

    COPYRIGHT

speck-geostationary