Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
zx_system_set_processor_power_state
摘要
更新核心觀察到的目前處理器電源等級狀態。注意:程序必須使用 next-vdso。
宣告
#include <zircon/syscalls-next.h>
zx_status_t zx_system_set_processor_power_state(zx_handle_t port,
const zx_processor_power_state_t* power_state);
說明
port 必須是 ZX_OBJ_TYPE_PORT 類型,且必須與電源網域轉換要求排入佇列的通訊埠相同。port 是更新特定電源網域的功能。
power_state 是 power_state.target_id 中提供的網域電源狀態。
權限
port 必須有 ZX_RIGHT_IO。
錯誤
ZX_ERR_ACCESS_DENIED,如果 port 並非在電源網域中註冊的項目。
如果 port 不是 ZX_OBJ_TYPE_PORT 類型,則為 ZX_ERR_WRONG_TYPE。
ZX_ERR_INVALID_ARGS 如果註冊的能源模型中沒有 power_state 轉換。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],[]]