PROTOCOLS
Connector
Defined in fuchsia.device.fs/connector.fidl
A connector lets a client forward the server end of a protocol.
Connect
Forward a server end of a protocol so that it can be connected.
- request
server
the server end of the protocol to be served. The FIDL protocol that this speaks is determined out-of-band.
- response This function has no response. The function is one-way to match the pipelining behaviors of other virtual filesystems.
Request
Name | Type |
---|---|
server | handle<channel> |
TopologicalPath
Defined in fuchsia.device.fs/controller.fidl
GetTopologicalPath
Return the topological path for this device
Request
<EMPTY>
Response
Name | Type |
---|---|
payload | TopologicalPath_GetTopologicalPath_Result |
STRUCTS
TopologicalPath_GetTopologicalPath_Response
Defined in fuchsia.device.fs/controller.fidl
Field | Type | Description | Default |
---|---|---|---|
path | string:1024 | No default |
TABLES
DevfsAddArgs resource
Defined in fuchsia.device.fs/connector.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 | connector | client_end:Connector | This is the connector to be installed in devfs. |
2 | class_name | string:255 | This is the class name for installing this node in devfs. The node will be placed within /dev/class/{class_name}. If |
3 | inspect | handle<vmo> | This is a vmo of inspect data that will be installed in devfs. Optional: If this is not provided then the devfs's inspect data will be empty. |
4 | connector_supports | ConnectionType | The connection types that are supported by the |connector| given. The driver framework should handle connection types that are not supported by the connector. If not provided, only the device type is assumed as supported by the connector. Added: HEAD |
5 | controller_connector | client_end:Connector | This is the controller connector to be installed in devfs. Added: HEAD |
UNIONS
TopologicalPath_GetTopologicalPath_Result strict
Defined in fuchsia.device.fs/controller.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 | response | TopologicalPath_GetTopologicalPath_Response | |
2 | err | zx/Status |
BITS
ConnectionType flexible
Type: uint8
Defined in fuchsia.device.fs/connector.fidl
Name | Value | Description |
---|---|---|
NODE | 1 | Represents the fuchsia.io/Node protocol. |
CONTROLLER | 2 | Represents the fuchsia.device/Controller protocol. |
DEVICE | 4 | Represents the device specific FIDL. |
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
DEVICE_CONTROLLER_NAME | device_controller | String | This name is reserved for accessing the fuchsia.device/Controller protocol within /dev/. No devices can be created with this name. |
DEVICE_PROTOCOL_NAME | device_protocol | String | This name is reserved for accessing the device specific protocol within /dev/. No devices can be created with this name. |
DEVICE_TOPOLOGY_NAME | device_topology | String | This name is reserved for accessing the fuchsia.device.fs/TopologicalPath protocol within /dev/. No devices can be created with this name. Added: HEAD |
MAX_DEVICE_PATH_LEN | 1024 | uint64 | Maximum length of a device path Added: HEAD |
MAX_DRIVER_PATH_LEN | 1024 | uint64 | Maximum length for a driver path Added: HEAD |