Summary
Updates the current processor power level state as observed by the kernel. Note: Process must use next-vdso.
Declaration
#include <zircon/syscalls-next.h>
zx_status_t zx_system_set_processor_power_state(zx_handle_t port,
const zx_processor_power_state_t* power_state);
Description
port
must be of type ZX_OBJ_TYPE_PORT
and must be the same port where the power domain
transition requests are queued. The port
is the capability for updating a specific
power domain.
power_state
is the power state of the domain provided in power_state.target_id
.
Rights
port
must have ZX_RIGHT_IO
.
Errors
ZX_ERR_ACCESS_DENIED
if port
is not the one registered with the power domain.
ZX_ERR_WRONG_TYPE
if port
is not of type ZX_OBJ_TYPE_PORT
.
ZX_ERR_INVALID_ARGS
if power_state
transition is not present in the registered energy model.