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

Function rte_bbdev_stop

dpdk/lib/bbdev/rte_bbdev.c:582–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582int
583rte_bbdev_stop(uint16_t dev_id)
584{
585 struct rte_bbdev *dev = get_dev(dev_id);
586 VALID_DEV_OR_RET_ERR(dev, dev_id);
587
588 VALID_DEV_OPS_OR_RET_ERR(dev, dev_id);
589
590 if (!dev->data->started) {
591 rte_bbdev_log_debug("Device %u is already stopped", dev_id);
592 return 0;
593 }
594
595 if (dev->dev_ops->stop)
596 dev->dev_ops->stop(dev);
597 dev->data->started = false;
598
599 rte_bbdev_log_debug("Stopped device %u", dev_id);
600 return 0;
601}
602
603int
604rte_bbdev_close(uint16_t dev_id)

Calls 1

get_devFunction · 0.85