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

Function rte_timer_alt_reset

dpdk/lib/timer/rte_timer.c:551–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551int
552rte_timer_alt_reset(uint32_t timer_data_id, struct rte_timer *tim,
553 uint64_t ticks, enum rte_timer_type type,
554 unsigned int tim_lcore, rte_timer_cb_t fct, void *arg)
555{
556 uint64_t cur_time = rte_get_timer_cycles();
557 uint64_t period;
558 struct rte_timer_data *timer_data;
559
560 TIMER_DATA_VALID_GET_OR_ERR_RET(timer_data_id, timer_data, -EINVAL);
561
562 if (type == PERIODICAL)
563 period = ticks;
564 else
565 period = 0;
566
567 return __rte_timer_reset(tim, cur_time + ticks, period, tim_lcore,
568 fct, arg, 0, timer_data);
569}
570
571/* loop until rte_timer_reset() succeed */
572void

Callers 4

swtim_callbackFunction · 0.85
__swtim_arm_burstFunction · 0.85
rte_timer_resetFunction · 0.85
test_timer_secondaryFunction · 0.85

Calls 1

__rte_timer_resetFunction · 0.85

Tested by 1

test_timer_secondaryFunction · 0.68