Enumerations

enum class Collection : uint8_t
Name Value Comments
kNone 0 --
kBoot 1

Collection for boot drivers.

kPackage 2

Collection for package drivers.

kFullPackage 3

Collection for universe package drivers.

Defined at line 12 of file ../../src/devices/bin/driver_manager/node_types.h

enum class NodeType
Name Value Comments
kNormal 0

Normal non-composite node.

kComposite 1

Composite node created from composite node specs.

Defined at line 22 of file ../../src/devices/bin/driver_manager/node_types.h

enum class RemovalSet : uint8_t
Name Value Comments
kAll 0

Remove the boot drivers and the package drivers

kPackage 1

Remove the package drivers

Defined at line 27 of file ../../src/devices/bin/driver_manager/shutdown/node_shutdown_coordinator.h

enum class DriverState : uint8_t
Name Value Comments
kStopped 0

Driver is not running.

kBinding 1

Driver's bind hook is scheduled and running.

kRunning 2

Driver finished binding and is running.

Defined at line 27 of file ../../src/devices/bin/driver_manager/node_types.h

enum class ShutdownIntent : uint8_t
Name Value Comments
kRemoval 0

Removes the node from the topology. The default shutdown intention.

kRestart 1

Restarts the node and attempts to bind it to a new driver.

kRebindComposite 2

Removes the composite node from the topology for rebind. Only invoked if the
node is a composite.

kQuarantine 3

If a node's driver fails to start, we shutdown the driver but not the node.
The node should be quarantined, which means we won't start its driver again.
Eventually if the driver is disabled, the node will restart and be able to
find a new driver match, or become an orphan until a new driver is
registered that matches it.

Represents the actions of the node after shutdown is completed.

Defined at line 33 of file ../../src/devices/bin/driver_manager/shutdown/node_shutdown_coordinator.h

enum class NodeState : uint8_t
Name Value Comments
kRunning 0

Normal running state.

kPrestop 1

Still running, but will remove soon. usually because the node
received Remove(kPackage), but is a boot driver.

kWaitingOnDriverBind 2

Waiting for the driver to complete binding.

kWaitingOnChildren 3

Received Remove, and waiting for children to be removed.

kWaitingOnDriver 4

Waiting for driver to respond from Stop() command.

kWaitingOnDriverComponent 5

Waiting for driver component to be stopped.

kStopped 6

Node finished stopping.

kWaitingOnDestroy 7

Waiting for the component to be destroyed.

kDestroyed 8

Node finished destroying component.

Defined at line 33 of file ../../src/devices/bin/driver_manager/node_types.h

enum class OfferTransport : std::uint8_t
Name Value
DriverTransport 0
ZirconTransport 1
Dictionary 2

Defined at line 36 of file ../../src/devices/bin/driver_manager/node.h

Records

Functions

  • fuchsia_driver_framework::NodeProperty2 ToProperty2 (const fuchsia_driver_framework::NodeProperty & property)

    Defined at line 12 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::NodeProperty2 ToProperty2 (const fuchsia_driver_framework::wire::NodeProperty property)

    Defined at line 19 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::NodeProperty ToDeprecatedProperty (const fuchsia_driver_framework::NodeProperty2 & property)

    Defined at line 27 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::wire::NodeProperty ToDeprecatedProperty (fidl::AnyArena & allocator, const fuchsia_driver_framework::NodeProperty2 & property)

    Defined at line 35 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::wire::NodeProperty ToDeprecatedProperty (fidl::AnyArena & allocator, const fuchsia_driver_framework::wire::NodeProperty2 property)

    Defined at line 44 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::BindRule2 ToBindRule2 (const fuchsia_driver_framework::BindRule & bind_rule)

    Defined at line 53 of file ../../src/devices/bin/driver_manager/node_property_conversion.h

  • fuchsia_driver_framework::Offer ToFidl (const NodeOffer & offer)

    Defined at line 221 of file ../../src/devices/bin/driver_manager/node.cc

  • NodeOffer CreateCompositeOffer (const NodeOffer & offer, std::string_view parents_name, bool primary_parent)

    This function creates a composite offer based on a service offer.

    Defined at line 244 of file ../../src/devices/bin/driver_manager/node.cc

  • zx::result<> SetEncodedConfig (fidl::WireTableBuilder<fuchsia_driver_framework::wire::DriverStartArgs> & args, fuchsia_component_runner::wire::ComponentStartInfo & start_info)

    Defined at line 127 of file ../../src/devices/bin/driver_manager/driver_host.cc

  • Collection ToCollection (const Node & node, fuchsia_driver_framework::DriverPackageType package_type)

    Defined at line 256 of file ../../src/devices/bin/driver_manager/driver_runner.cc

Variables

std::unordered_map<std::string_view, uint8_t> classes_that_assume_ordering

Defined at line 147 of file ../../src/devices/bin/driver_manager/devfs/class_names.h

bool g_use_test_process_koid

Defined at line 544 of file ../../src/devices/bin/driver_manager/node.cc