PROTOCOLS
Controller
Defined in fuchsia.starnix.container/controller.fidl
GetJobHandle
Returns the job handle of the container.
Request
<EMPTY>
Response
| Name | Type | 
|---|---|
| payload | Controller_GetJobHandle_Result | 
GetVmoReferences
Returns all processes that have open files that are backed by a vmo with koid.
Request
| Name | Type | 
|---|---|
| payload | ControllerGetVmoReferencesRequest | 
Response
| Name | Type | 
|---|---|
| payload | Controller_GetVmoReferences_Result | 
SendSignal
Sends the provided signal to the process with the given pid.
Request
| Name | Type | 
|---|---|
| payload | ControllerSendSignalRequest | 
Response
| Name | Type | 
|---|---|
| payload | Controller_SendSignal_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
| Name | Type | 
|---|---|
| payload | ControllerSpawnConsoleRequest | 
Response
| Name | Type | 
|---|---|
| payload | Controller_SpawnConsole_Result | 
VsockConnect
Connects bridge_socket to a vsocket at port in the container.
Request
| Name | Type | 
|---|---|
| payload | ControllerVsockConnectRequest | 
STRUCTS
ConsoleWindowSize
Defined in fuchsia.starnix.container/controller.fidl
| Field | Type | Description | Default | 
|---|---|---|---|
| rows | uint16 | No default | |
| cols | uint16 | No default | |
| x_pixels | uint16 | No default | |
| y_pixels | uint16 | No default | 
Controller_SendSignal_Response
Defined in fuchsia.starnix.container/controller.fidl
<EMPTY>
Controller_SpawnConsole_Response
Defined in fuchsia.starnix.container/controller.fidl
| Field | Type | Description | Default | 
|---|---|---|---|
| exit_code | uint8 | No default | 
ENUMS
SignalError flexible
Type: uint32
Defined in fuchsia.starnix.container/controller.fidl
| Name | Value | Description | 
|---|---|---|
| INVALID_TARGET | 1 | Invalid target process. | 
| INVALID_SIGNAL | 2 | Invalid signal. | 
SpawnConsoleError flexible
Type: uint32
Defined in fuchsia.starnix.container/controller.fidl
| Name | Value | Description | 
|---|---|---|
| INVALID_ARGS | 1 | A required table field was missing or otherwise invalid. | 
| CANCELED | 2 | The console process exited without a normal return code. | 
TABLES
ControllerGetVmoReferencesRequest
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | koid | uint64 | 
ControllerSendSignalRequest
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | pid | int32 | |
| 2 | signal | uint64 | 
ControllerSpawnConsoleRequest resource
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 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 resource
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | port | uint32 | |
| 2 | bridge_socket | handle<socket> | 
Controller_GetJobHandle_Response resource
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | job | handle<job> | 
Controller_GetVmoReferences_Response
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | references | vector<VmoReference> | 
VmoReference
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | process_name | string | The name of the process containing a file backed by the vmo. | 
| 2 | pid | uint64 | The Starnix pid of the process containing a file backed by the vmo. | 
| 3 | fd | int32 | The file descriptor number in the process that refers to the vmo. | 
| 4 | koid | uint64 | The koid of the vmo. | 
UNIONS
Controller_GetJobHandle_Result strict resource
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Controller_GetJobHandle_Response | |
| 3 | framework_err | internal | 
Controller_GetVmoReferences_Result strict
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Controller_GetVmoReferences_Response | |
| 3 | framework_err | internal | 
Controller_SendSignal_Result strict
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Controller_SendSignal_Response | |
| 2 | err | SignalError | |
| 3 | framework_err | internal | 
Controller_SpawnConsole_Result strict
Defined in fuchsia.starnix.container/controller.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Controller_SpawnConsole_Response | |
| 2 | err | SpawnConsoleError | |
| 3 | framework_err | internal |