通訊協定
控制器
定義於 fuchsia.starnix.container/controller.fidl
GetVmoReferences
傳回所有具有開放檔案且由含 koid 的 vmo 支援的程序。
要求
名稱 | 類型 |
---|---|
payload |
ControllerGetVmoReferencesRequest
|
回應
名稱 | 類型 |
---|---|
payload |
Controller_GetVmoReferences_Result
|
SpawnConsole
產生主控台以便在容器中偵錯。測試時,建議使用 starnix_container
執行元件以元件形式啟動 Linux 程式。
主控台關閉時傳回。
要求
名稱 | 類型 |
---|---|
payload |
ControllerSpawnConsoleRequest
|
回應
名稱 | 類型 |
---|---|
payload |
Controller_SpawnConsole_Result
|
VsockConnect
將 bridge_socket
連線至容器中 port
的 vsocket。
要求
名稱 | 類型 |
---|---|
payload |
ControllerVsockConnectRequest
|
結構化
ConsoleWindowSize
定義於 fuchsia.starnix.container/controller.fidl
欄位 | 類型 | 說明 | 預設 |
---|---|---|---|
rows |
uint16
|
無預設 | |
cols |
uint16
|
無預設 | |
x_pixels |
uint16
|
無預設 | |
y_pixels |
uint16
|
無預設 |
Controller_SpawnConsole_Response
定義於 fuchsia.starnix.container/controller.fidl
欄位 | 類型 | 說明 | 預設 |
---|---|---|---|
exit_code |
uint8
|
無預設 |
ENUMS
SpawnConsoleError 彈性
類型:uint32
定義於 fuchsia.starnix.container/controller.fidl
名稱 | 值 | 說明 |
---|---|---|
INVALID_ARGS |
1 |
必要的表格欄位遺失或無效。 |
已取消 |
2 |
控制台程序在沒有一般傳回代碼的情況下結束。 |
資料表
ControllerGetVmoReferencesRequest
定義於 fuchsia.starnix.container/controller.fidl
序數 | 欄位 | 類型 | 說明 |
---|---|---|---|
1 |
koid |
uint64
|
ControllerSpawnConsoleRequest 資源
定義於 fuchsia.starnix.container/controller.fidl
序數 | 欄位 | 類型 | 說明 |
---|---|---|---|
1 |
console_in |
handle<socket>
|
|
2 |
console_out |
handle<socket>
|
|
3 |
binary_path |
string
|
|
4 |
argv |
vector<string>
|
|
5 |
environ |
vector<string>
|
|
6 |
window_size |
ConsoleWindowSize
|
ControllerVsockConnectRequest 資源
定義於 fuchsia.starnix.container/controller.fidl
序數 | 欄位 | 類型 | 說明 |
---|---|---|---|
1 |
port |
uint32
|
|
2 |
bridge_socket |
handle<socket>
|
Controller_GetVmoReferences_Response
定義於 fuchsia.starnix.container/controller.fidl
序數 | 欄位 | 類型 | 說明 |
---|---|---|---|
1 |
references |
vector<VmoReference>
|
VmoReference
在 fuchsia.starnix.container/controller.fidl 中定義
序數 | 欄位 | 類型 | 說明 |
---|---|---|---|
1 |
process_name |
string
|
程序的名稱,該程序包含 vmo 支援的檔案。 |
2 |
pid |
uint64
|
程序的 Starnix pid,包含 vmo 支援的檔案。 |
3 |
fd |
int32
|
在程序中參照 vmo 的檔案描述元編號。 |
4 |
koid |
uint64
|
無敵的罪惡。 |
聯合國
Controller_GetVmoReferences_Result 嚴格
在 fuchsia.starnix.container/controller.fidl 中定義
序數 | Variant | 類型 | 說明 |
---|---|---|---|
1 |
response |
Controller_GetVmoReferences_Response
|
|
3 |
framework_err |
internal
|
Controller_SpawnConsole_Result 嚴格
在 fuchsia.starnix.container/controller.fidl 中定義
序數 | Variant | 類型 | 說明 |
---|---|---|---|
1 |
response |
Controller_SpawnConsole_Response
|
|
2 |
err |
SpawnConsoleError
|
|
3 |
framework_err |
internal
|