Namespaces

Records

Functions

  • fdf::async_helpers::AsyncTask FindDirectoryEntries (fidl::ClientEnd<fuchsia_io::Directory> dir, async_dispatcher_t * dispatcher, EntriesCallback cb)

    Make an async call to the directory to get all of the existing entries, and calls the callback

    with a vector of strings for each entry.

    Defined at line 17 of file ../../sdk/lib/driver/compat/cpp/connect.cc

  • template <typename Client>
    fdf::async_helpers::AsyncTask ConnectBanjo (const std::shared_ptr<fdf::Namespace> & incoming, fit::callback<void (zx::result<Client>)> callback, std::string_view parent_name)

    Connect Asynchronously to a banjo protocol. Returns a cancellation token that can be added

    to a |fdf::async_helpers::WorkTracker| with its |TrackWorkCompletion|.

    Defined at line 46 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/banjo_client.h

  • zx::result<std::vector<std::string>> FindDirectoryEntries (fidl::ClientEnd<fuchsia_io::Directory> dir)

    Make an synchronous call to the directory to get all of the existing entries, returns

    a vector of strings for each entry.

    Defined at line 67 of file ../../sdk/lib/driver/compat/cpp/connect.cc

  • template <typename Client>
    zx::result<Client> ConnectBanjo (const std::shared_ptr<fdf::Namespace> & incoming, std::string_view parent_name)

    Connect Synchronously to the banjo protocol.

    Defined at line 72 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/banjo_client.h

  • template <typename FidlType, typename = std::enable_if_t<fidl::IsFidlObject<FidlType>::value>>
    zx::result<FidlType> GetMetadata (const std::shared_ptr<fdf::Namespace> & incoming, uint32_t type, std::string_view instance)

    Attempts to talk to a parent to acquire metadata with |type| and then decodes it into |FidlType|.

    Defined at line 103 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • fdf::async_helpers::AsyncTask ConnectToParentDevices (async_dispatcher_t * dispatcher, const fdf::Namespace * ns, ConnectCallback cb)

    Asynchronously connect to each of the parent devices.

    Defined at line 108 of file ../../sdk/lib/driver/compat/cpp/connect.cc

  • template <typename FidlType, typename = std::enable_if_t<fidl::IsFidlObject<FidlType>::value>>
    fdf::async_helpers::AsyncTask GetMetadataAsync (async_dispatcher_t * dispatcher, const std::shared_ptr<fdf::Namespace> & incoming, uint32_t type, fit::callback<void (zx::result<FidlType>)> callback, std::string_view instance)

    Attempts to talk to a parent to acquire metadata with |type| and then decodes it into |FidlType|.

    Defined at line 123 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • zx::result<std::vector<ParentDevice>> ConnectToParentDevices (const fdf::Namespace * ns)

    Synchronously connect to each of the parent devices.

    Defined at line 151 of file ../../sdk/lib/driver/compat/cpp/connect.cc

  • std::vector<fuchsia_driver_framework::wire::NodeProperty2> CreateProperties (fidl::AnyArena & arena, fdf::Logger & logger, device_add_args_t * zx_args)

    Defined at line 111 of file ../../src/devices/misc/drivers/compat/device.cc

  • template <typename FidlType>
    zx::result<fidl::ObjectView<FidlType>> GetMetadata (const std::shared_ptr<fdf::Namespace> & incoming, fidl::AnyArena & arena, uint32_t type, std::string_view instance)

    Defined at line 152 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • template <typename FidlType>
    fdf::async_helpers::AsyncTask GetMetadataAsync (async_dispatcher_t * dispatcher, const std::shared_ptr<fdf::Namespace> & incoming, fidl::AnyArena & arena, uint32_t type, fit::callback<void (zx::result<fidl::ObjectView<FidlType>>)> callback, std::string_view instance)

    Defined at line 178 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • zx_status_t AddMetadata (Device * device, fidl::VectorView<fuchsia_driver_compat::wire::Metadata> data)

    Defined at line 184 of file ../../src/devices/misc/drivers/compat/driver.cc

  • template <typename ReturnType, typename = std::enable_if_t<!fidl::IsFidlObject<ReturnType>::value>>
    zx::result<std::unique_ptr<ReturnType>> GetMetadata (const std::shared_ptr<fdf::Namespace> & incoming, uint32_t type, std::string_view instance)

    Attempts to talk to a parent to acquire metadata with |type| and then casts it into |ReturnType|.

    Defined at line 203 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • promise<void, zx_status_t> GetAndAddMetadata (fidl::WireClient<fuchsia_driver_compat::Device> & client, Device * device)

    Defined at line 206 of file ../../src/devices/misc/drivers/compat/driver.cc

  • template <typename ReturnType, typename = std::enable_if_t<!fidl::IsFidlObject<ReturnType>::value>>
    fdf::async_helpers::AsyncTask GetMetadataAsync (async_dispatcher_t * dispatcher, const std::shared_ptr<fdf::Namespace> & incoming, uint32_t type, fit::callback<void (zx::result<std::unique_ptr<ReturnType>>)> callback, std::string_view instance)

    Attempts to talk to a parent to acquire metadata with |type| and then casts it into |ReturnType|.

    Defined at line 223 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

  • template <typename ReturnTypetypename = std::enable_if_t<!fidl::IsFidlObject<ReturnType>::value>typename = std::enable_if_t<std::is_trivial_v<ReturnType>>>
    zx::result<std::vector<ReturnType>> GetMetadataArray (const std::shared_ptr<fdf::Namespace> & incominguint32_t typestd::string_view instance)

    Attempts to talk to a parent to acquire an array of metadata with |type| and

    stores it in a `std::vector

    <ReturnType

    >`.

    Defined at line 247 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/metadata.h

Variables

std::mutex kGlobalLoggerListLock

Defined at line 175 of file ../../src/devices/misc/drivers/compat/driver.cc

GlobalLoggerList global_logger_list

Defined at line 181 of file ../../src/devices/misc/drivers/compat/driver.cc