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_NEW
  • event_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