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

Function null_bbdev_remove

dpdk/drivers/baseband/null/bbdev_null.c:324–344  ·  view source on GitHub ↗

Uninitialise device */

Source from the content-addressed store, hash-verified

322
323/* Uninitialise device */
324static int
325null_bbdev_remove(struct rte_vdev_device *vdev)
326{
327 struct rte_bbdev *bbdev;
328 const char *name;
329
330 if (vdev == NULL)
331 return -EINVAL;
332
333 name = rte_vdev_device_name(vdev);
334 if (name == NULL)
335 return -EINVAL;
336
337 bbdev = rte_bbdev_get_named_dev(name);
338 if (bbdev == NULL)
339 return -EINVAL;
340
341 rte_free(bbdev->data->dev_private);
342
343 return rte_bbdev_release(bbdev);
344}
345
346static struct rte_vdev_driver bbdev_null_pmd_drv = {
347 .probe = null_bbdev_probe,

Callers

nothing calls this directly

Calls 4

rte_vdev_device_nameFunction · 0.85
rte_bbdev_get_named_devFunction · 0.85
rte_freeFunction · 0.85
rte_bbdev_releaseFunction · 0.85

Tested by

no test coverage detected