MCPcopy Create free account
hub / github.com/F-Stack/f-stack / driver_probe_device

Function driver_probe_device

dpdk/drivers/bus/platform/platform.c:384–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384static int
385driver_probe_device(struct rte_platform_driver *pdrv, struct rte_platform_device *pdev)
386{
387 enum rte_iova_mode iova_mode;
388 int ret;
389
390 iova_mode = rte_eal_iova_mode();
391 if (pdrv->drv_flags & RTE_PLATFORM_DRV_NEED_IOVA_AS_VA && iova_mode != RTE_IOVA_VA) {
392 PLATFORM_LOG(ERR, "driver %s expects VA IOVA mode but current mode is PA\n",
393 pdrv->driver.name);
394 return -EINVAL;
395 }
396
397 ret = device_setup(pdev);
398 if (ret)
399 return ret;
400
401 ret = driver_call_probe(pdrv, pdev);
402 if (ret)
403 device_cleanup(pdev);
404
405 return ret;
406}
407
408static bool
409driver_match_device(struct rte_platform_driver *pdrv, struct rte_platform_device *pdev)

Callers 1

device_attachFunction · 0.85

Calls 4

rte_eal_iova_modeFunction · 0.85
device_setupFunction · 0.85
driver_call_probeFunction · 0.85
device_cleanupFunction · 0.85

Tested by

no test coverage detected