FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | clib_spinlock_s |
struct | clib_rw_lock_ |
Macros | |
#define | CLIB_PAUSE() __builtin_ia32_pause () |
#define | CLIB_LOCK_DBG(_p) |
#define | CLIB_LOCK_DBG_CLEAR(_p) |
#define | CLIB_SPINLOCK_IS_LOCKED(_p) (*(_p))->lock |
#define | CLIB_SPINLOCK_ASSERT_LOCKED(_p) ASSERT(CLIB_SPINLOCK_IS_LOCKED((_p))) |
Typedefs | |
typedef struct clib_spinlock_s * | clib_spinlock_t |
typedef struct clib_rw_lock_ * | clib_rwlock_t |
Functions | |
static void | clib_spinlock_init (clib_spinlock_t *p) |
static void | clib_spinlock_free (clib_spinlock_t *p) |
static_always_inline void | clib_spinlock_lock (clib_spinlock_t *p) |
static_always_inline int | clib_spinlock_trylock (clib_spinlock_t *p) |
static_always_inline void | clib_spinlock_lock_if_init (clib_spinlock_t *p) |
static_always_inline int | clib_spinlock_trylock_if_init (clib_spinlock_t *p) |
static_always_inline void | clib_spinlock_unlock (clib_spinlock_t *p) |
static_always_inline void | clib_spinlock_unlock_if_init (clib_spinlock_t *p) |
static void | clib_rwlock_init (clib_rwlock_t *p) |
static void | clib_rwlock_free (clib_rwlock_t *p) |
static void | clib_rwlock_reader_lock (clib_rwlock_t *p) |
static void | clib_rwlock_reader_unlock (clib_rwlock_t *p) |
static void | clib_rwlock_writer_lock (clib_rwlock_t *p) |
static void | clib_rwlock_writer_unlock (clib_rwlock_t *p) |
#define CLIB_SPINLOCK_ASSERT_LOCKED | ( | _p | ) | ASSERT(CLIB_SPINLOCK_IS_LOCKED((_p))) |
typedef struct clib_rw_lock_ * clib_rwlock_t |
typedef struct clib_spinlock_s* clib_spinlock_t |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
static_always_inline void clib_spinlock_lock | ( | clib_spinlock_t * | p | ) |
static_always_inline void clib_spinlock_lock_if_init | ( | clib_spinlock_t * | p | ) |
static_always_inline int clib_spinlock_trylock | ( | clib_spinlock_t * | p | ) |
static_always_inline int clib_spinlock_trylock_if_init | ( | clib_spinlock_t * | p | ) |
static_always_inline void clib_spinlock_unlock | ( | clib_spinlock_t * | p | ) |
static_always_inline void clib_spinlock_unlock_if_init | ( | clib_spinlock_t * | p | ) |