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

Function zlib_remove

dpdk/drivers/compress/zlib/zlib_pmd.c:406–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406static int
407zlib_remove(struct rte_vdev_device *vdev)
408{
409 struct rte_compressdev *compressdev;
410 const char *name;
411
412 name = rte_vdev_device_name(vdev);
413 if (name == NULL)
414 return -EINVAL;
415
416 compressdev = rte_compressdev_pmd_get_named_dev(name);
417 if (compressdev == NULL)
418 return -ENODEV;
419
420 return rte_compressdev_pmd_destroy(compressdev);
421}
422
423static struct rte_vdev_driver zlib_pmd_drv = {
424 .probe = zlib_probe,

Callers

nothing calls this directly

Calls 3

rte_vdev_device_nameFunction · 0.85

Tested by

no test coverage detected