PROTOCOLS
DriverManagerRegistration
Defined in fuchsia.power.manager/register.fidl
Protocol for the Driver Manager to register the required protocol instances with the Power Manager.
Register
Registers a [fuchsia.device.manager/SystemStateTransition] and [fuchsia.io.Directory] with the Power Manager. The Power Manager expects to receive this call exactly once and it will be inoperable until the call is made successfully. If the call succeeds, the DriverManagerRegistration channel will no longer serve any purpose and may be closed. If the call fails, the Power Manager will leave the channel open and await a retry.
- request
system_state_transition
a [fuchsia.device.manager/SystemStateTransition] that allows the Power Manager to set the Driver Manager termination behavior. This is an essential piece involved in coordinating orderly system shutdown. - request
dir
a [fuchsia.io.Directory] that represents the devfs (/dev) served by the Driver Manager.
- error a [fuchsia.power.manager.Error] value indicating the reason (if any) that Register failed.
Request
Name | Type |
---|---|
system_state_transition |
fuchsia.device.manager/SystemStateTransition
|
dir |
fuchsia.io/Directory
|
Response
Name | Type |
---|---|
result |
DriverManagerRegistration_Register_Result
|
STRUCTS
DriverManagerRegistration_Register_Response
Defined in fuchsia.power.manager/register.fidl
Name | Type | Description | Default |
---|
ENUMS
RegistrationError
Type: uint32
Defined in fuchsia.power.manager/register.fidl
Error codes for the DriverManagerRegistration protocol.
Name | Value | Description |
---|---|---|
INTERNAL |
0 |
The component encountered an unspecified error while performing the operation. |
INVALID_HANDLE |
1 |
At least one handle provided was invalid. |
UNIONS
DriverManagerRegistration_Register_Result
Defined in fuchsia.power.manager/register.fidl
Name | Type | Description |
---|---|---|
response |
DriverManagerRegistration_Register_Response
|
|
err |
RegistrationError
|