Lines Matching refs:timer

12 such adapter; it bridges event devices and timer mechanisms.
16 a timer expiration, and providing an API with which adapters can be created or
20 software implementations of the timer mechanism; it will query an eventdev PMD
33 Event timers are timers that enqueue a timer expiration event to an event
34 device upon timer expiration.
36 The Event Timer Adapter API represents each event timer with a generic struct,
45 The event contained by an event timer is enqueued in the event device when the
46 timer expires, and the event device uses the attributes below when scheduling
50 which the timer expiry event should be enqueued
52 timer expiry event in the event queue relative to other events
54 the timer expiry event
55 * ``flow_id`` - Application can set this to indicate which flow this timer
57 * ``op`` - Will be set to ``RTE_EVENT_OP_NEW`` by the event timer adapter
58 * ``event_type`` - Will be set to ``RTE_EVENT_TYPE_TIMER`` by the event timer
64 The number of ticks from now in which the timer will expire. The ticks value
65 has a resolution (``timer_tick_ns``) that is specified in the event timer
71 Before arming an event timer, the application should initialize its state to
72 RTE_EVENT_TIMER_NOT_ARMED. The event timer's state will be updated when a
75 If the application wishes to rearm the timer after it has expired, it should
81 Memory to store user specific metadata. The event timer adapter implementation
87 This section will introduce the reader to the event timer adapter API, showing
88 how to create and configure an event timer adapter and use it to manage event
104 To create an event timer adapter instance, initialize an
126 Before creating an instance of a timer adapter, the application should create
129 used by the timer adapter. If required, the
143 The event timer adapter implementation may have constraints on tick resolution
144 or maximum timer expiry timeout based on the given event timer adapter or
148 Upon successful event timer adapter creation, the application can get the
153 * ``min_resolution_ns`` - Minimum timer adapter tick resolution in ns.
154 * ``max_tmo_ns`` - Maximum timer timeout(expiry) in ns.
155 * ``adapter_conf`` - Configured event timer adapter attributes
170 An event timer adapter uses a service component if the event device PMD
177 running the event timer adapter. This function calls the start entry points
189 Once an event timer adapter has been started, an application can begin to
194 successful allocation, the application should initialize the event timer, and
205 /* Set up the event timer. */
215 Note that it is necessary to initialize the event timer state to
217 ``conn`` object in the timer's event payload. This will allow us to locate
218 the connection object again once we dequeue the timer expiry event from the
221 timer itself.
223 Now we can arm the event timer with ``rte_event_timer_arm_burst()``:
230 Once an event timer expires, the application may free it or rearm it as
231 necessary. If the application will rearm the timer, the state should be reset
245 An event timer that has been armed as described in `Arming Event Timers`_ can
251 * cancel the retransmission timer
253 rte_event_timer_cancel_burst(adapter, &conn->timer, 1);
258 Once an event timer has successfully enqueued a timer expiry event in the event
261 associated with the event timer. It can then re-arm the event timer or free the
262 event timer object as desired:
290 /* Re-arm timer using original values. */
291 rte_event_timer_arm_burst(adapter_id, &conn->timer, 1);
298 by representing timer expirations as events in the system and allowing
300 timers or handle timer expiry events.