fuchsia.scheduler

Added: 20

PROTOCOLS

RoleManager

Defined in fuchsia.scheduler/role.fidl

Allows callers to modify the runtime profiles of zircon objects.

SetRole

Sets the given object's performance parameters based on the requested role. The exact parameters of the role are system dependent and may vary based on device-specific tuning and/or runtime system goals.

  • request target is a handle to a zircon object to which a profile can be applied.
  • request role is the name of the role to apply to the target.
  • request input_parameters is a vector of key/value pairs used to distinguish between multiple variants of the same role.
  • response output_parameters is a vector of key/value pairs that roles can be configured to emit.
  • error a zx_status value indicating success or failure.

Request

NameType
payload RoleManagerSetRoleRequest

Response

NameType
payload RoleManager_SetRole_Result

STRUCTS

Parameter

Defined in fuchsia.scheduler/role.fidl

FieldTypeDescriptionDefault
key string[512] No default
value ParameterValue No default

RoleName

Defined in fuchsia.scheduler/role.fidl

FieldTypeDescriptionDefault
role string[2048] No default

TABLES

RoleManagerSetRoleRequest resource

Defined in fuchsia.scheduler/role.fidl

OrdinalFieldTypeDescription
target RoleTarget
role RoleName
input_parameters vector<Parameter>[512]

RoleManager_SetRole_Response resource

Defined in fuchsia.scheduler/role.fidl

OrdinalFieldTypeDescription
output_parameters vector<Parameter>[512]

UNIONS

ParameterValue flexible

Defined in fuchsia.scheduler/role.fidl

OrdinalVariantTypeDescription
float_value float64
int_value int64
string_value string[2048]

RoleManager_SetRole_Result strict resource

Defined in fuchsia.scheduler/role.fidl

OrdinalVariantTypeDescription
response RoleManager_SetRole_Response
err zx/Status
framework_err internal

RoleTarget flexible resource

Defined in fuchsia.scheduler/role.fidl

A Zircon object to which a profile can be applied. Currently, only threads and vmars are supported.

OrdinalVariantTypeDescription
thread handle<thread>
vmar handle<vmar>

CONSTANTS

NameValueTypeDescription
MAX_NAME_LENGTH 2048 int32
MAX_PARAMETER_COUNT 512 int32
MAX_PARAMETER_KEY_LENGTH 512 int32
MAX_PARAMETER_VALUE_LENGTH 2048 int32