Documentation ¶
Overview ¶
Package wakeupreason provides helper functions to identify the subsystem which caused the APSS to wakeup from suspend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDeviceNotFound indicates that the given device does not have a wakeup reason mapping. ErrDeviceNotFound = errors.New("device not found") )
Functions ¶
func FindSubsystem ¶
FindSubsystem parses the "input" string against the device specific mapping table. Example: FindSubsystem("hammerhead", "200:qcom,smd-rpm:203:fc4281d0.qcom,mpm:304:qpnp_adc_tm_interrupt:338:bq24192_irq")
func IsSupportedDevice ¶
IsSupportedDevice identifies whether the given device has a wakeup reason mapping or not. The input should be device name (eg. hammerhead) and not model name (eg. Nexus 5).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.