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

fuchsia.hardware.cpu.ctrl

PROTOCOLS

Device

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

GetLogicalCoreId

Returns a global system-wide core ID for the nth core in this performance domain. index must be a value in the range [0, n) where n is the value returned by GetNumLogicalCores().

Request

NameType
index uint64

Response

NameType
id uint64

GetNumLogicalCores

Returns the number of logical cores contained within this performance domain.

Request

<EMPTY>

Response

NameType
count uint64

GetPerformanceStateInfo

Returns information about a given performance state for this performance domain.

Request

NameType
state uint32

Response

NameType
result Device_GetPerformanceStateInfo_Result

STRUCTS

CpuPerformanceStateInfo

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

A collection of some basic information for a given performance state.

FieldTypeDescriptionDefault
frequency_hz int64

Frequency the core is operating at in hertz.

No default
voltage_uv int64 No default

Device_GetPerformanceStateInfo_Response

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

FieldTypeDescriptionDefault
info CpuPerformanceStateInfo No default

UNIONS

Device_GetPerformanceStateInfo_Result strict

Defined in fuchsia.hardware.cpu.ctrl/ctrl.fidl

Ordinal
VariantTypeDescription
1 response Device_GetPerformanceStateInfo_Response
2 err zx/status

CONSTANTS

NameValueTypeDescription
FREQUENCY_UNKNOWN -1 int64

CpuPerformanceStateInfo::frequency_hz and CpuPerformanceStateInfo::voltage_uv are set to this if the frequency and voltage for the given performance state are unknown respectively.

VOLTAGE_UNKNOWN -1 int64