src/dpdk/lib/librte_eventdev/rte_event_timer_adapter.h
static inline uint16_t
rte_event_timer_cancel_burst(const struct rte_event_timer_adapter *adapter,
			     struct rte_event_timer **evtims,
			     uint16_t nb_evtims)
{
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
	FUNC_PTR_OR_ERR_RET(adapter->cancel_burst, -EINVAL);
#endif
	rte_eventdev_trace_timer_cancel_burst(adapter, (void **)evtims,
		nb_evtims);
	return adapter->cancel_burst(adapter, evtims, nb_evtims);
}
/**
 * Cancel a burst of event timers from being scheduled to the event device.
 *
 * @param adapter
 *   A pointer to an event timer adapter structure.
 * @param evtims
 *   Points to an array of objects of type *rte_event_timer* structure
 * @param nb_evtims
 *   Number of event timer instances in the supplied array.
 *
 * @return
 *   The number of successfully canceled event timers. The return value can be
 *   less than the value of the *nb_evtims* parameter. If the return value is
 *   less than *nb_evtims*, the remaining event timers at the end of *evtims*
 *   are not consumed, and the caller has to take care of them, and rte_errno
 *   is set accordingly. Possible errno values include:
 *   - EINVAL Invalid timer adapter identifier
 *   - EAGAIN Specified timer adapter is not running
 *   - EALREADY  A timer was encountered that was already canceled
 */
Cancel a burst of event timers from being scheduled to the event device.
@param adapter
A pointer to an event timer adapter structure.
@param evtims
Points to an array of objects of type *rte_event_timer* structure
@param nb_evtims
Number of event timer instances in the supplied array.

@return
The number of successfully canceled event timers. The return value can be
less than the value of the *nb_evtims* parameter. If the return value is
less than *nb_evtims*, the remaining event timers at the end of *evtims
are not consumed, and the caller has to take care of them, and rte_errno
is set accordingly. Possible errno values include:
- EINVAL Invalid timer adapter identifier
- EAGAIN Specified timer adapter is not running
- EALREADY  A timer was encountered that was already canceled
Cancel a burst of event timers from being scheduled to the event device . @param adapter A pointer to an event timer adapter structure . @param evtims Points to an array of objects of type * rte_event_timer * structure @param nb_evtims Number of event timer instances in the supplied array . @return The number of successfully canceled event timers . The return value can be less than the value of the * nb_evtims * parameter . If the return value is less than * nb_evtims * the remaining event timers at the end of * evtims are not consumed and the caller has to take care of them and rte_errno is set accordingly . Possible errno values include : - EINVAL Invalid timer adapter identifier - EAGAIN Specified timer adapter is not running - EALREADY A timer was encountered that was already canceled
static inline uint16_t
rte_event_timer_cancel_burst(const struct rte_event_timer_adapter *adapter,
			     struct rte_event_timer **evtims,
			     uint16_t nb_evtims)
{
#ifdef RTE_LIBRTE_EVENTDEV_DEBUG
	ADAPTER_VALID_OR_ERR_RET(adapter, -EINVAL);
	FUNC_PTR_OR_ERR_RET(adapter->cancel_burst, -EINVAL);
#endif
	rte_eventdev_trace_timer_cancel_burst(adapter, (void **)evtims,
		nb_evtims);
	return adapter->cancel_burst(adapter, evtims, nb_evtims);
}
static inline uint16_t rte_event_timer_cancel_burst ( const struct rte_event_timer_adapter * adapter , struct rte_event_timer * * evtims , uint16_t nb_evtims ) { #ifdef RTE_LIBRTE_EVENTDEV_DEBUG ADAPTER_VALID_OR_ERR_RET ( adapter , - EINVAL ) ; FUNC_PTR_OR_ERR_RET ( adapter -> cancel_burst , - EINVAL ) ; #endif rte_eventdev_trace_timer_cancel_burst ( adapter , ( void * * ) evtims , nb_evtims ) ; return adapter -> cancel_burst ( adapter , evtims , nb_evtims ) ; }
Cancel a burst of event timers from being scheduled to the event device.
Cancel a burst of event timers from being scheduled to the event device .