fuchsia.starnix.container

添加日期:18

协议

控制器

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

GetVmoReferences

返回具有由 koid 的 vmo 支持的打开文件的所有进程。

添加了:HEAD

请求

名称类型
payload ControllerGetVmoReferencesRequest

响应

名称类型
payload Controller_GetVmoReferences_Result

SpawnConsole

在容器中生成用于调试的控制台。如需进行测试,请首选将 Linux 程序作为 starnix_container 运行程序的组件启动。

在控制台退出时返回。

请求

名称类型
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 无默认取景方式

枚举

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

vmo 的子项。

联合

Controller_GetVmoReferences_Result 严格

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

序数变体类型说明
response Controller_GetVmoReferences_Response
framework_err internal

Controller_SpawnConsole_Result 严格

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

序数变体类型说明
response Controller_SpawnConsole_Response
err SpawnConsoleError
framework_err internal