协议
控制器
在 fuchsia.starnix.container/controller.fidl 中定义
GetVmoReferences
返回具有由 koid 的 vmo 支持的打开文件的所有进程。
请求
名称 | 类型 |
---|---|
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 中定义
名称 | 值 | 说明 |
---|---|---|
INVALID_ARGS |
1 |
某个必要的表格字段缺失或无效。 |
CANCELED |
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
|
vmo 的子项。 |
联合
Controller_GetVmoReferences_Result 严格
在 fuchsia.starnix.container/controller.fidl 中定义
序数 | 变体 | 类型 | 说明 |
---|---|---|---|
1 |
response |
Controller_GetVmoReferences_Response
|
|
3 |
framework_err |
internal
|
Controller_SpawnConsole_Result 严格
在 fuchsia.starnix.container/controller.fidl 中定义
序数 | 变体 | 类型 | 说明 |
---|---|---|---|
1 |
response |
Controller_SpawnConsole_Response
|
|
2 |
err |
SpawnConsoleError
|
|
3 |
framework_err |
internal
|