USB_SUSPEND_DEVICE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

usb_suspend_device - suspend a usb device  

SYNOPSIS

"SYNOPSIS"

int usb_suspend_device (struct usb_device * udev, pm_message_t state);  

ARGUMENTS

udev
device that's no longer in active use
state
PMSG_SUSPEND to suspend
 

CONTEXT

must be able to sleep; device not locked  

DESCRIPTION

Suspends a USB device that isn't in active use, conserving power. Devices may wake out of a suspend, if anything important happens, using the remote wakeup mechanism. They may also be taken out of suspend by the host, using usb_resume_device. It's also routine to disconnect devices while they are suspended.

Suspending OTG devices may trigger HNP, if that's been enabled between a pair of dual-role devices. That will change roles, such as from A-Host to A-Peripheral or from B-Host back to B-Peripheral.

Returns 0 on success, else negative errno.


 

Index

NAME
SYNOPSIS
ARGUMENTS
CONTEXT
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:58 GMT, October 09, 2005