class NodeManager
Defined at line 99 of file ../../src/devices/bin/driver_manager/node.h
Public Methods
void Bind (Node & node, std::shared_ptr<BindResultTracker> result_tracker)
Attempt to bind `node`.
A nullptr for result_tracker is acceptable if the caller doesn't intend to
track the results.
void ~NodeManager ()
Defined at line 101 of file ../../src/devices/bin/driver_manager/node.h
void BindToUrl (Node & node, std::string_view driver_url_suffix, std::shared_ptr<BindResultTracker> result_tracker)
Defined at line 108 of file ../../src/devices/bin/driver_manager/node.h
DriverHost * GetDriverHost (std::string_view driver_name_name_for_colocation)
zx::result<DriverHost *> CreateDriverHost (bool use_next_vdso, std::string_view driver_name_name_for_colocation)
zx::result<> StartDriver (Node & node, std::string_view url, fuchsia_driver_framework::DriverPackageType package_type)
Defined at line 113 of file ../../src/devices/bin/driver_manager/node.h
void CreateDriverHostDynamicLinker (std::string_view driver_name_name_for_colocation, fit::callback<void (zx::result<DriverHost *>)> completion_cb)
Creates the driver host component, loads the driver host using dynamic linking,
and calls |cb| on completion or error.
Defined at line 125 of file ../../src/devices/bin/driver_manager/node.h
bool IsDriverHostValid (DriverHost * driver_host)
DriverHost lifetimes are managed through a linked list, and they will delete themselves
when the FIDL connection is closed. Currently in the Node class we store a raw pointer to the
DriverHost object, and do not have a way to remove it from the class when the underlying
DriverHost object is deallocated. This function will return true if the underlying DriverHost
object is still alive and in the linked list. Otherwise returns false.
Defined at line 136 of file ../../src/devices/bin/driver_manager/node.h
void RebindComposite (std::string spec, std::optional<std::string> driver_url, fit::callback<void (zx::result<>)> callback)
Defined at line 138 of file ../../src/devices/bin/driver_manager/node.h
bool IsTestShutdownDelayEnabled ()
Defined at line 141 of file ../../src/devices/bin/driver_manager/node.h
std::weak_ptr<std::mt19937> GetShutdownTestRng ()
Defined at line 142 of file ../../src/devices/bin/driver_manager/node.h
void WaitForBootup (fit::callback<void ()> callback)
Defined at line 146 of file ../../src/devices/bin/driver_manager/node.h
void ImportDictionary (fuchsia_component_sandbox::DictionaryRef dictionary, fit::callback<void (zx::result<uint64_t>)> callback)
Defined at line 148 of file ../../src/devices/bin/driver_manager/node.h
void CreatePowerElement (std::string_view name, fuchsia_power_broker::DependencyToken element_token, std::vector<fuchsia_power_broker::DependencyToken> deps, fidl::ServerEnd<fuchsia_power_broker::ElementControl> control, fidl::ClientEnd<fuchsia_power_broker::ElementRunner> runner, fidl::ServerEnd<fuchsia_power_broker::Lessor> lessor, Collection for_collection, fit::callback<void (zx::result<bool>)> cb)
Create a power element where |element_token| is the access token for the newly created
element. |deps| are the tokens this element should depend on.
|cb| is called with:
- `zx::ok(true)` if the power element was successfully created
- `zx::ok(false)` if the power element could not be created because this is not a suspend-
enabled platform.
- `zx::error` if an error happens creating the element on a suspend-enabled platform.
Defined at line 160 of file ../../src/devices/bin/driver_manager/node.h
void AddLeaseControlChannel (fidl::ClientEnd<fuchsia_power_broker::LeaseControl> lease)
Store the `fuchsia.power.broker/LeaseControl` channel associated with the power element for
this element.
Defined at line 173 of file ../../src/devices/bin/driver_manager/node.h
DictionaryUtil & dictionary_util ()
Defined at line 177 of file ../../src/devices/bin/driver_manager/node.h
bool SuspendEnabled ()
Defined at line 179 of file ../../src/devices/bin/driver_manager/node.h
std::optional<fuchsia_power_broker::DependencyToken> StorageElementToken ()
Defined at line 181 of file ../../src/devices/bin/driver_manager/node.h
MemoryAttributor & memory_attributor ()
Defined at line 185 of file ../../src/devices/bin/driver_manager/node.h