src/dpdk/lib/librte_eal/common/eal_common_dev.c
int
local_dev_remove(struct rte_device *dev)
{
	int ret;

	if (dev->bus->unplug == NULL) {
		RTE_LOG(ERR, EAL, "Function unplug not supported by bus (%s)\n",
			dev->bus->name);
		return -ENOTSUP;
	}

	ret = dev->bus->unplug(dev);
	if (ret) {
		RTE_LOG(ERR, EAL, "Driver cannot detach the device (%s)\n",
			dev->name);
		return (ret < 0) ? ret : -ENOENT;
	}

	return 0;
}
/* remove device at local process. */
remove device at local process.
remove device at local process .
int
local_dev_remove(struct rte_device *dev)
{
	int ret;
	if (dev->bus->unplug == NULL) {
		RTE_LOG(ERR, EAL, "Function unplug not supported by bus (%s)\n",
			dev->bus->name);
		return -ENOTSUP;
	}
	ret = dev->bus->unplug(dev);
	if (ret) {
		RTE_LOG(ERR, EAL, "Driver cannot detach the device (%s)\n",
			dev->name);
		return (ret < 0) ? ret : -ENOENT;
	}
	return 0;
}
int local_dev_remove ( struct rte_device * dev ) { int ret ; if ( dev -> bus -> unplug == NULL ) { RTE_LOG ( ERR , EAL , " \n " , dev -> bus -> name ) ; return - ENOTSUP ; } ret = dev -> bus -> unplug ( dev ) ; if ( ret ) { RTE_LOG ( ERR , EAL , " \n " , dev -> name ) ; return ( ret < 0 ) ? ret : - ENOENT ; } return 0 ; }
remove device at local process.
remove device at local process .