fuchsia_driver_dev

Function get_driver_by_device

Source
pub async fn get_driver_by_device(
    device_topo_path: &String,
    driver_development_proxy: &ManagerProxy,
) -> Result<DriverInfo>
Expand description

Gets the driver that is bound to the given device.

Is able to fuzzy match on the device’s topological path, where the shortest match will be the one chosen.

§Arguments

  • device_topo_path - The device’s topological path. e.g. sys/platform/…/device