PROTOCOLS
SystemStateTransition
Defined in fuchsia.system.state/system-state-transition.fidl
Provides protocol for fetching relevant information during a system state transition.
GetMexecZbis
When the system termination state is MEXEC, in the course of shutting down, driver_manager will perform an mexec itself after suspending all drivers. This method allows driver manager to fetch the kernel and data ZBIs to be passed to zx_system_mexec().
This method only should only be invoked in the case MEXEC shutdown.
It is expected that the ZBI items specified by
zx_system_mexec_payload_get()
have not yet been appended to the
provided data ZBI.
Returns
- ZX_ERR_BAD_STATE: The termination system state is not set to MEXEC.
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
SystemStateTransition_GetMexecZbis_Result
|
GetTerminationSystemState
Gets the termination state.
Request
<EMPTY>
Response
Name | Type |
---|---|
state |
SystemPowerState
|
STRUCTS
SystemStateTransition_GetMexecZbis_Response resource
Defined in fuchsia.system.state/system-state-transition.fidl
Field | Type | Description | Default |
---|---|---|---|
kernel_zbi |
handle<vmo>
|
No default | |
data_zbi |
handle<vmo>
|
No default |
ENUMS
SystemPowerState strict
Type: uint8
Defined in fuchsia.system.state/system-state-transition.fidl
Name | Value | Description |
---|---|---|
FULLY_ON |
1 |
|
REBOOT |
2 |
|
REBOOT_BOOTLOADER |
3 |
|
REBOOT_RECOVERY |
4 |
|
POWEROFF |
5 |
|
MEXEC |
6 |
|
SUSPEND_RAM |
7 |
|
REBOOT_KERNEL_INITIATED |
8 |
UNIONS
SystemStateTransition_GetMexecZbis_Result strict resource
Defined in fuchsia.system.state/system-state-transition.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
SystemStateTransition_GetMexecZbis_Response
|
|
2 |
err |
zx/Status
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
MAX_SYSTEM_POWER_STATES |
8
|
uint32 |
The number of variants of |