Google is committed to advancing racial equity for Black communities. See how.

fuchsia.scheduler

PROTOCOLS

ProfileProvider

Defined in fuchsia.scheduler/profile.fidl

GetCpuAffinityProfile

Obtain a handle for a profile that sets CPU affinity.

TODO(fxbug.dev/40858): This API will be deprecated and removed in the future, use SetProfileByRole instead.

Request

NameType
cpu_mask CpuSet

Response

NameType
status zx/status
profile handle<profile>?

GetDeadlineProfile

Obtain a deadline profile handle.

TODO(fxbug.dev/40858): This API will be deprecated and removed in the future, use SetProfileByRole instead.

Request

NameType
capacity uint64
deadline uint64
period uint64
name string[64]

Response

NameType
status zx/status
profile handle<profile>?

GetProfile

Obtain a profile handle.

TODO(fxbug.dev/40858): This API will be deprecated and removed in the future, use SetProfileByRole instead.

Request

NameType
priority uint32
name string[64]

Response

NameType
status zx/status
profile handle<profile>?

SetProfileByRole

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

Request

NameType
thread handle<thread>
role string[2048]

Response

NameType
status zx/status

STRUCTS

CpuSet

Defined in fuchsia.scheduler/profile.fidl

NameTypeDescriptionDefault
mask uint64[8] No default