src/dpdk/drivers/net/failsafe/failsafe_private.h
static inline void
fs_unlock(struct rte_eth_dev *dev, unsigned int is_alarm)
{
	int ret;

	if (is_alarm) {
		RTE_ASSERT(PRIV(dev)->alarm_lock == 1);
		PRIV(dev)->alarm_lock = 0;
	}
	ret = pthread_mutex_unlock(&PRIV(dev)->hotplug_mutex);
	if (ret)
		ERROR("Cannot unlock hot-plug mutex(%s)", strerror(ret));
}
/*
 * Unlock hot-plug mutex.
 * is_alarm means that the caller is, for sure, the hot-plug alarm mechanism.
 */
Unlock hot-plug mutex.
is_alarm means that the caller is, for sure, the hot-plug alarm mechanism.
Unlock hot - plug mutex . is_alarm means that the caller is for sure the hot - plug alarm mechanism .
static inline void
fs_unlock(struct rte_eth_dev *dev, unsigned int is_alarm)
{
	int ret;
	if (is_alarm) {
		RTE_ASSERT(PRIV(dev)->alarm_lock == 1);
		PRIV(dev)->alarm_lock = 0;
	}
	ret = pthread_mutex_unlock(&PRIV(dev)->hotplug_mutex);
	if (ret)
		ERROR("Cannot unlock hot-plug mutex(%s)", strerror(ret));
}
static inline void fs_unlock ( struct rte_eth_dev * dev , unsigned int is_alarm ) { int ret ; if ( is_alarm ) { RTE_ASSERT ( PRIV ( dev ) -> alarm_lock == 1 ) ; PRIV ( dev ) -> alarm_lock = 0 ; } ret = pthread_mutex_unlock ( & PRIV ( dev ) -> hotplug_mutex ) ; if ( ret ) ERROR ( " " , strerror ( ret ) ) ; }
Unlock hot-plug mutex.
Unlock hot - plug mutex .