FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
refcount.h File Reference
+ Include dependency graph for refcount.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vlib_refcount_per_cpu_t
 
struct  vlib_refcount_t
 

Functions

static_always_inline void vlib_refcount_lock (clib_spinlock_t counter_lock)
 
static_always_inline void vlib_refcount_unlock (clib_spinlock_t counter_lock)
 
static_always_inline void vlib_refcount_add (vlib_refcount_t *r, u32 thread_index, u32 counter_index, i32 v)
 
u64 vlib_refcount_get (vlib_refcount_t *r, u32 index)
 
static_always_inline void vlib_refcount_init (vlib_refcount_t *r)
 

Function Documentation

◆ vlib_refcount_add()

static_always_inline void vlib_refcount_add ( vlib_refcount_t r,
u32  thread_index,
u32  counter_index,
i32  v 
)

Definition at line 68 of file refcount.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_refcount_get()

u64 vlib_refcount_get ( vlib_refcount_t r,
u32  index 
)

Definition at line 31 of file refcount.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_refcount_init()

static_always_inline void vlib_refcount_init ( vlib_refcount_t r)

Definition at line 80 of file refcount.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_refcount_lock()

static_always_inline void vlib_refcount_lock ( clib_spinlock_t  counter_lock)

Definition at line 54 of file refcount.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_refcount_unlock()

static_always_inline void vlib_refcount_unlock ( clib_spinlock_t  counter_lock)

Definition at line 60 of file refcount.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: