rte_event_timer(3)
π rte_event_timer(3) β Library Functions Manual π
okay bestie, come sit with me, because today we're learning about the generic event timer struct and honestly? she's serving. this is rte_event_timer, straight out of DPDK, and she's here to hold all the event timer attributes you need for arm and cancel operations. no cap.
β¨ NAME β¨
rte_event_timer β the generic event timer structure π
π SYNOPSIS π
#include <rte_event_timer_adapter.h>
πΈ Data Fields πΈ
struct rte_event ev
uint64_t timeout_ticks
uint64_t impl_opaque [2]
enum rte_event_timer_state state
uint8_t user_meta []
π¦ Detailed Description π¦
The generic rte_event_timer structure to hold the event timer attributes for arm and cancel operations. periodt.
fr fr, this is the definition at line 476 of file rte_event_timer_adapter.h.
π Field Documentation π
π struct rte_event ev
Expiry event attributes. The way that this works is: on a successful event timer timeout, the following attributes get used to inject the expiry event to the eventdev. it's giving very intentional:
event_queue_idβ Targeted event queue id for expiry events.event_priorityβ Event priority of the event expiry event in the event queue relative to other events.sched_typeβ Scheduling type of the expiry event.flow_idβ Flow id of the expiry event.opβRTE_EVENT_OP_NEWevent_typeβRTE_EVENT_TYPE_TIMER
Definition at line 477 of file rte_event_timer_adapter.h. β¨
π uint64_t timeout_ticks
Expiry timer ticks β expressed in number of timer_ticks_ns from now. so basically "how many ticks until we pop off" π
See also
struct rte_event_timer_adapter_info::adapter_conf::timer_tick_ns
Definition at line 490 of file rte_event_timer_adapter.h. π«Ά
π uint64_t impl_opaque[2]
Implementation-specific opaque data. An event timer adapter implementation uses this field to hold implementation specific values so it can share stuff between the arm and cancel operations.
bestie, do NOT touch this one. The application should not modify this field. it's not yours, it's the implementation's. hands off. π
Definition at line 495 of file rte_event_timer_adapter.h. π
π enum rte_event_timer_state state
State of the event timer. that's it, that's the field, she's simple and she ate. β
Definition at line 501 of file rte_event_timer_adapter.h. π
π uint8_t user_meta[]
Memory to store user specific metadata. and listen β the event timer adapter implementation should not modify this area. it's your little corner of the struct, you're the main character here, decorate accordingly. π
Definition at line 503 of file rte_event_timer_adapter.h. π§
πΈ Author πΈ
Generated automatically by Doxygen for DPDK from the source code. yes, a robot wrote my homework and honestly? slay. π€β¨
okay and for the cute little sign-off: this whole thing is DPDK, Version 25.11.3, rte_event_timer(3), and that's the vibe check β passed with flying colors. go arm some timers, bestie, i believe in you π«Άππ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms