CNDP  22.08.0
cne_timer Struct Reference

#include <cne_timer.h>

Data Fields

uint64_t expire
 
struct cne_timersl_next [MAX_SKIPLIST_DEPTH]
 
volatile union cne_timer_status status
 
uint64_t period
 
cne_timer_cb_t f
 
void * arg
 

Detailed Description

A structure describing a timer in CNE.

Examples
examples/timer/main.c.

Definition at line 89 of file cne_timer.h.

Field Documentation

◆ expire

uint64_t expire

Time when timer expire.

Definition at line 90 of file cne_timer.h.

◆ sl_next

struct cne_timer* sl_next[MAX_SKIPLIST_DEPTH]

Skiplist for timers

Definition at line 91 of file cne_timer.h.

◆ status

volatile union cne_timer_status status

Status of timer.

Definition at line 91 of file cne_timer.h.

◆ period

uint64_t period

Period of timer (0 if not periodic).

Definition at line 93 of file cne_timer.h.

◆ f

Callback function.

Definition at line 94 of file cne_timer.h.

◆ arg

void* arg

Argument to callback function.

Definition at line 95 of file cne_timer.h.


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