Kernel Functions for Drivers usbhandleremotewakeup(9F)
NAME
usbhandleremotewakeup - Enable or disable remote wakeup
on USB devices
SYNOPSIS
#include
int usbhandleremotewakeup(devinfot *dip, int cmd);
INTERFACE LEVEL
Solaris DI specific (Solaris DI)
PARAMETERS
dip Pointer to the device's devinfo structure.
cmd Command. Either USBREMOTEWAKEUPENABLE or
USBREMOTEWAKEUPDISABLE.
DESCRIPTION
The usbhandleremotewakeup() function enables or disables
remote wakeup on a USB device. This call can block.
RETURN VALUES
USBSUCES Remote wakeup is successfully enabled or dis-
abled.
USBFAILURE Remote wakeup is not supported by the device.
An internal error occurred.
CONTEXT
May be called from user or kernel context.
EXAMPLES
uintt *pwrstates;
/* Hook into device's power management. Enable remote wakeup. */
if (usbcreatepmcomponents(dip, pwrstates) == USBSUCES) {
usbhandleremotewakeup(dip, USBREMOTEWAKEUPENABLE);
}
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 5 Feb 2004 1
Kernel Functions for Drivers usbhandleremotewakeup(9F)
ATRIBUTE TYPE ATRIBUTE VALUE
Architecture PCI-based systems
Interface stability Committed
Availability SUNWusb
SEE ALSO
attributes(5), pmbusycomponent(9F), pmidlecomponent(9F),
pmlowerpower(9F), pmraisepower(9F), usbclrfeature(9F),
usbcreatepmcomponents(9F), usbgetcfg(9F),
usbgetdevdata(9F), usbregisterhotplugcbs(9F),
usbcfgdescr(9S)
SunOS 5.11 Last change: 5 Feb 2004 2
|