fuchsia.starnix.container

Added: 18

PROTOCOLS

Controller

Defined in fuchsia.starnix.container/controller.fidl

GetJobHandle

Returns the job handle of the container.

Added: HEAD

Request

<EMPTY>

Response

NameType
payload Controller_GetJobHandle_Result

GetVmoReferences

Returns all processes that have open files that are backed by a vmo with koid.

Added: HEAD

Request

NameType
payload ControllerGetVmoReferencesRequest

Response

NameType
payload Controller_GetVmoReferences_Result

SpawnConsole

Spawn a console for debugging in the container. For testing, prefer launching Linux programs as components with the starnix_container runner.

Returns when the console exits.

Request

NameType
payload ControllerSpawnConsoleRequest

Response

NameType
payload Controller_SpawnConsole_Result

VsockConnect

Connects bridge_socket to a vsocket at port in the container.

Request

NameType
payload ControllerVsockConnectRequest

SocketTunnel

Defined in fuchsia.starnix.container/socket_tunnel.fidl

Open a socket on the remote end with a provided label, and return a zx::handle to the socket for local client.

Added: HEAD

OpenSocket

Request

NameType
payload SocketTunnelOpenSocketRequest

Response

NameType
payload SocketTunnel_OpenSocket_Result

STRUCTS

ConsoleWindowSize

Defined in fuchsia.starnix.container/controller.fidl

FieldTypeDescriptionDefault
rows uint16 No default
cols uint16 No default
x_pixels uint16 No default
y_pixels uint16 No default

Controller_SpawnConsole_Response

Defined in fuchsia.starnix.container/controller.fidl

FieldTypeDescriptionDefault
exit_code uint8 No default

ENUMS

SpawnConsoleError flexible

Type: uint32

Defined in fuchsia.starnix.container/controller.fidl

NameValueDescription
1

A required table field was missing or otherwise invalid.

2

The console process exited without a normal return code.

TABLES

ControllerGetVmoReferencesRequest

Defined in fuchsia.starnix.container/controller.fidl

OrdinalFieldTypeDescription
koid uint64

ControllerSpawnConsoleRequest resource

Defined in fuchsia.starnix.container/controller.fidl

OrdinalFieldTypeDescription
console_in handle<socket>
console_out handle<socket>
binary_path string
argv vector<string>
environ vector<string>
window_size ConsoleWindowSize

ControllerVsockConnectRequest resource

Defined in fuchsia.starnix.container/controller.fidl

OrdinalFieldTypeDescription
port uint32
bridge_socket handle<socket>

Controller_GetJobHandle_Response resource

Defined in fuchsia.starnix.container/controller.fidl

OrdinalFieldTypeDescription
job handle<job>

Controller_GetVmoReferences_Response

Defined in fuchsia.starnix.container/controller.fidl

OrdinalFieldTypeDescription
references vector<VmoReference>

SocketTunnelOpenSocketRequest

Defined in fuchsia.starnix.container/socket_tunnel.fidl

OrdinalFieldTypeDescription
socket_label string

SocketTunnel_OpenSocket_Response resource

Defined in fuchsia.starnix.container/socket_tunnel.fidl

OrdinalFieldTypeDescription
client_socket handle<socket>

VmoReference

Defined in fuchsia.starnix.container/controller.fidl

Added: HEAD

OrdinalFieldTypeDescription
process_name string

The name of the process containing a file backed by the vmo.

pid uint64

The Starnix pid of the process containing a file backed by the vmo.

fd int32

The file descriptor number in the process that refers to the vmo.

koid uint64

The koid of the vmo.

UNIONS

Controller_GetJobHandle_Result strict resource

Defined in fuchsia.starnix.container/controller.fidl

OrdinalVariantTypeDescription
response Controller_GetJobHandle_Response
framework_err internal

Controller_GetVmoReferences_Result strict

Defined in fuchsia.starnix.container/controller.fidl

OrdinalVariantTypeDescription
response Controller_GetVmoReferences_Response
framework_err internal

Controller_SpawnConsole_Result strict

Defined in fuchsia.starnix.container/controller.fidl

OrdinalVariantTypeDescription
response Controller_SpawnConsole_Response
err SpawnConsoleError
framework_err internal

SocketTunnel_OpenSocket_Result strict resource

Defined in fuchsia.starnix.container/socket_tunnel.fidl

OrdinalVariantTypeDescription
response SocketTunnel_OpenSocket_Response
framework_err internal

SERVICES

SocketTunnelService

Defined in fuchsia.starnix.container/socket_tunnel.fidl

NameTypeTransport
socket_tunnel fuchsia.starnix.container/SocketTunnel Channel