fuchsia.starnix.container

新增時間:18 歲

通訊協定

控制器

定義於 fuchsia.starnix.container/controller.fidl

GetVmoReferences

傳回所有具有開放檔案且由含 koid 的 vmo 支援的程序。

已新增:HEAD

要求

名稱類型
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

名稱說明
1

必要的表格欄位遺失或無效。

2

控制台程序在沒有一般傳回代碼的情況下結束。

資料表

ControllerGetVmoReferencesRequest

定義於 fuchsia.starnix.container/controller.fidl

序數欄位類型說明
koid uint64

ControllerSpawnConsoleRequest 資源

定義於 fuchsia.starnix.container/controller.fidl

序數欄位類型說明
console_in handle<socket>
console_out handle<socket>
binary_path string
argv vector<string>
environ vector<string>
window_size ConsoleWindowSize

ControllerVsockConnectRequest 資源

定義於 fuchsia.starnix.container/controller.fidl

序數欄位類型說明
port uint32
bridge_socket handle<socket>

Controller_GetVmoReferences_Response

定義於 fuchsia.starnix.container/controller.fidl

序數欄位類型說明
references vector<VmoReference>

VmoReference

fuchsia.starnix.container/controller.fidl 中定義

已新增:HEAD

序數欄位類型說明
process_name string

程序的名稱,該程序包含 vmo 支援的檔案。

pid uint64

程序的 Starnix pid,包含 vmo 支援的檔案。

fd int32

在程序中參照 vmo 的檔案描述元編號。

koid uint64

無敵的罪惡。

聯合國

Controller_GetVmoReferences_Result 嚴格

fuchsia.starnix.container/controller.fidl 中定義

序數Variant類型說明
response Controller_GetVmoReferences_Response
framework_err internal

Controller_SpawnConsole_Result 嚴格

fuchsia.starnix.container/controller.fidl 中定義

序數Variant類型說明
response Controller_SpawnConsole_Response
err SpawnConsoleError
framework_err internal