1usb_handle_remote_wakeup(9KFe)rnel Functions for Driveurssb_handle_remote_wakeup(9F)
2
3
4
6 usb_handle_remote_wakeup - Enable or disable remote wakeup on USB
7 devices
8
10 #include <sys/usb/usba.h>
11
12
13
14 int usb_handle_remote_wakeup(dev_info_t *dip, int cmd);
15
16
18 Solaris DDI specific (Solaris DDI)
19
21 dip Pointer to the device's dev_info structure.
22
23
24 cmd Command. Either USB_REMOTE_WAKEUP_ENABLE or
25 USB_REMOTE_WAKEUP_DISABLE.
26
27
29 The usb_handle_remote_wakeup() function enables or disables remote
30 wakeup on a USB device. This call can block.
31
33 USB_SUCCESS Remote wakeup is successfully enabled or disabled.
34
35
36 USB_FAILURE Remote wakeup is not supported by the device. An inter‐
37 nal error occurred.
38
39
41 May be called from user or kernel context.
42
44 uint_t *pwrstates;
45
46 /* Hook into device's power management. Enable remote wakeup. */
47 if (usb_create_pm_components(dip, pwrstates) == USB_SUCCESS) {
48 usb_handle_remote_wakeup(dip, USB_REMOTE_WAKEUP_ENABLE);
49 }
50
51
52
54 See attributes(5) for descriptions of the following attributes:
55
56
57
58
59 ┌─────────────────────────────┬─────────────────────────────┐
60 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
61 ├─────────────────────────────┼─────────────────────────────┤
62 │Architecture │PCI-based systems │
63 ├─────────────────────────────┼─────────────────────────────┤
64 │Interface stability │Committed │
65 ├─────────────────────────────┼─────────────────────────────┤
66 │Availability │SUNWusb │
67 └─────────────────────────────┴─────────────────────────────┘
68
70 attributes(5), pm_busy_component(9F), pm_idle_component(9F),
71 pm_lower_power(9F), pm_raise_power(9F), usb_clr_feature(9F), usb_cre‐
72 ate_pm_components(9F), usb_get_cfg(9F), usb_get_dev_data(9F), usb_reg‐
73 ister_hotplug_cbs(9F), usb_cfg_descr(9S)
74
75
76
77SunOS 5.11 5 Feb 2004 usb_handle_remote_wakeup(9F)