DPDK  24.07.0
Data Fields
rte_timer Struct Reference

#include <rte_timer.h>

Data Fields

uint64_t expire
 
volatile union rte_timer_status status
 
uint64_t period
 
rte_timer_cb_t f
 
void * arg
 

Detailed Description

A structure describing a timer in RTE.

Examples:
examples/l2fwd-jobstats/main.c, examples/l2fwd-keepalive/main.c, examples/l3fwd-power/main.c, and examples/timer/main.c.

Definition at line 98 of file rte_timer.h.

Field Documentation

◆ expire

uint64_t expire

Time when timer expire.

Definition at line 100 of file rte_timer.h.

◆ status

volatile union rte_timer_status status

Status of timer.

Definition at line 102 of file rte_timer.h.

◆ period

uint64_t period

Period of timer (0 if not periodic).

Definition at line 103 of file rte_timer.h.

◆ f

Callback function.

Definition at line 104 of file rte_timer.h.

◆ arg

void* arg

Argument to callback function.

Examples:
examples/l3fwd-power/main.c, and examples/timer/main.c.

Definition at line 105 of file rte_timer.h.


The documentation for this struct was generated from the following file: