新增日期:20 位
通訊協定
RoleManager
定義於 fuchsia.scheduler/role.fidl
允許呼叫端修改 zircon 物件的執行階段設定檔。
SetRole
根據要求的角色設定指定物件的效能參數。角色的確切參數則需視系統而定,且可能會因裝置專屬調整和/或執行階段系統目標而異。
- 要求 target是可套用設定檔的 Zircon 物件控制代碼。
- 要求 role是要套用至目標的角色名稱。
- 要求 input_parameters是鍵/值組合的向量,用來區分相同角色的多個變化版本。
- 回應 output_parameters是可設定角色來發出鍵/值組合的向量。
- 錯誤的 zx_status 值,表示成功或失敗。
要求
| 名稱 | 類型 | 
|---|---|
| payload | RoleManagerSetRoleRequest | 
回應
| 名稱 | 類型 | 
|---|---|
| payload | RoleManager_SetRole_Result | 
結構化
參數
定義於 fuchsia.scheduler/role.fidl
| 廣闊 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| key | string[512] | 無預設 | |
| value | ParameterValue | 無預設 | 
RoleName
定義於 fuchsia.scheduler/role.fidl
| 廣闊 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| role | string[2048] | 無預設 | 
資料表
RoleManagerSetRoleRequest 資源
定義於 fuchsia.scheduler/role.fidl
| 序數 | 廣闊 | 類型 | 說明 | 
|---|---|---|---|
| 1 | target | RoleTarget | |
| 2 | role | RoleName | |
| 3 | input_parameters | vector<Parameter>[512] | 
RoleManager_SetRole_Response 資源
定義於 fuchsia.scheduler/role.fidl
| 序數 | 廣闊 | 類型 | 說明 | 
|---|---|---|---|
| 1 | output_parameters | vector<Parameter>[512] | 
聯合國
參數值彈性
定義於 fuchsia.scheduler/role.fidl
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | float_value | float64 | |
| 2 | int_value | int64 | |
| 3 | string_value | string[2048] | 
RoleManager_SetRole_Result 嚴格 資源
定義於 fuchsia.scheduler/role.fidl
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | response | RoleManager_SetRole_Response | |
| 2 | err | zx/Status | |
| 3 | framework_err | internal | 
RoleTarget 的彈性 資源
定義於 fuchsia.scheduler/role.fidl
可套用設定檔的 Zircon 物件。 目前僅支援執行緒和 vmars。
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | thread | handle<thread> | |
| 2 | vmar | handle<vmar> | 
業者
| 名稱 | 值 | 類型 | 說明 | 
|---|---|---|---|
| MAX_NAME_LENGTH | 2048 | int32 | |
| MAX_PARAMETER_COUNT | 512 | int32 | |
| MAX_PARAMETER_KEY_LENGTH | 512 | int32 | |
| MAX_PARAMETER_VALUE_LENGTH | 2048 | int32 |