fuchsia.scheduler

Added: 20

PROTOCOLS

RoleManager

Defined in fuchsia.scheduler/role.fidl

Allows callers to modify the runtime profiles of zircon objects.

GetProfileForRole

Returns a profile handle for the requested role.

  • request target is the type of profile to retrieve.
  • request role is the name of the role to retrieve.
  • request input_parameters is a vector of key/value pairs used to distinguish between multiple variants of the same role.
  • response profile is the handle to the requested profile.
  • 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.
Added: HEAD

Request

NameType
payload RoleManagerGetProfileForRoleRequest

Response

NameType
payload RoleManager_GetProfileForRole_Result

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

ENUMS

RoleType strict

Type: uint32

Defined in fuchsia.scheduler/role.fidl

Added: HEAD

NameValueDescription
0
1

TABLES

RoleManagerGetProfileForRoleRequest resource

Defined in fuchsia.scheduler/role.fidl

OrdinalFieldTypeDescription
target RoleType
role RoleName
input_parameters vector<Parameter>:512

RoleManagerSetRoleRequest resource

Defined in fuchsia.scheduler/role.fidl

OrdinalFieldTypeDescription
target RoleTarget
role RoleName
input_parameters vector<Parameter>:512

RoleManager_GetProfileForRole_Response resource

Defined in fuchsia.scheduler/role.fidl

OrdinalFieldTypeDescription
profile handle<profile>
output_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_GetProfileForRole_Result strict resource

Defined in fuchsia.scheduler/role.fidl

OrdinalVariantTypeDescription
response RoleManager_GetProfileForRole_Response
err zx/Status
framework_err internal

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