Module power

Module power 

Source

Structs§

ContainerWakingProxy
A proxy wrapper that manages a zx::Counter to allow the container to suspend after events are being processed.
ContainerWakingStream
A stream wrapper that manages a zx::Counter to allow the container to suspend after events are being processed.
OwnedMessageCounter
Owns a zx::Counter to track pending messages that prevent the container from suspending.
PowerStateFile
PowerSyncOnSuspendFile
PowerWakeLockFile
PowerWakeUnlockFile
PowerWakeupCountFile
This file allows user space to put the system into a sleep state while taking into account the concurrent arrival of wakeup events.
SharedMessageCounter
Wrapper around a Weak OwnedMessageCounter that can be passed around to keep the container awake.
SuspendResumeManager
Manager for suspend and resume.
SuspendResumeManagerInner
Manager for suspend and resume.
SuspendStats
Suspend statistics collection.

Enums§

LockSource
The source of a wake lock.
SuspendEvent
SuspendState

Traits§

OnWakeOps

Functions§

create_proxy_for_wake_events_counter
Creates a proxy between remote_channel and the returned zx::Channel.
create_proxy_for_wake_events_counter_zero
Creates a proxy between remote_channel and the returned zx::Channel.
create_watcher_for_wake_events
Creates a watcher between clients and the Starnix runner.
mark_all_proxy_messages_handled
Marks all messages tracked by counter as handled.
mark_proxy_message_handled
Marks a message handled by decrementing counter.

Type Aliases§

EbpfSuspendGuard
OwnedMessageCounterHandle
SuspendResumeManagerHandle