fuchsia.sys.internal

PROTOCOLS

ComponentEventProvider

Defined in fuchsia.sys.internal/component_event_provider.fidl

Service exposed by appmgr that enables a component (such as archivist) to listen for lifecycle events of components in the realm tree.

SetListener

Requests a hook to get lifecycle events for the realm from where this service was connected to.

Request

NameType
listener ComponentEventListener

ComponentEventListener

Defined in fuchsia.sys.internal/component_event_provider.fidl

Listener for events about the lifecycle of components.

When the listener is created it will receive OnStart calls for all components that were already in the Realm tree. If some sub-realm has a listener attached, events for components under that realm's subtree won't be synthesized.

OnStart

Notifies the client that a component has started in the realm.

Request

NameType
component SourceIdentity

OnStop

Notifies the client that a component has stopped.

Request

NameType
component SourceIdentity

OnDiagnosticsDirReady

Notifies the client that the out/diagnostics directory of a component is ready and provides a handle to it.

Request

NameType
component SourceIdentity
directory fuchsia.io/Directory

STRUCTS

SomeLongAnonymousPrefix0

generated

anonymous struct

NameTypeDescriptionDefault
listener ComponentEventListener No default

SomeLongAnonymousPrefix1

generated

anonymous struct

NameTypeDescriptionDefault
component SourceIdentity No default

SomeLongAnonymousPrefix2

generated

anonymous struct

NameTypeDescriptionDefault
component SourceIdentity No default

SomeLongAnonymousPrefix3

generated

anonymous struct

NameTypeDescriptionDefault
component SourceIdentity No default
directory fuchsia.io/Directory No default

TABLES

SourceIdentity

Defined in fuchsia.sys.internal/source_identity.fidl

Identifies a component uniquely within the observing realm. Example: hub/r/sys/4566/c/http.cmx/19226 moniker: [root, sys, http.cmx] component_url: "fuchsia-pkg://fuchsia.com/http#meta/http.cmx" component_name: "http.cmx" instance_id: 19226

OrdinalNameTypeDescription
1 realm_path vector<string>[25]

The path to the component from the observing realm.

2 component_url string[4096]

The URL from which the component was loaded.

3 component_name string[255]

The name of the component.

4 instance_id string[100]

The ID of the component.

CONSTANTS

NameValueTypeDescription
MAXIMUM_REALM_PATH_SEGMENTS 25 uint16
COMPONENT_NAME_MAX_LENGTH 255 uint16
STRING_MAX_LENGTH 100 uint16
MAX_URL_LENGTH 4096 uint16