FEMU  原版 master 7e238cc
FEMU: Accurate, Scalable and Extensible NVMe SSD Emulator (FAST'18)
rte_ring_generic.h 文件参考

浏览源代码.

函数

static __rte_always_inline void update_tail (struct rte_ring_headtail *ht, uint32_t old_val, uint32_t new_val, uint32_t single, uint32_t enqueue)
 
static __rte_always_inline unsigned int __rte_ring_move_prod_head (struct rte_ring *r, unsigned int is_sp, unsigned int n, enum rte_ring_queue_behavior behavior, uint32_t *old_head, uint32_t *new_head, uint32_t *free_entries)
 
static __rte_always_inline unsigned int __rte_ring_move_cons_head (struct rte_ring *r, unsigned int is_sc, unsigned int n, enum rte_ring_queue_behavior behavior, uint32_t *old_head, uint32_t *new_head, uint32_t *entries)
 

函数说明

◆ __rte_ring_move_cons_head()

static __rte_always_inline unsigned int __rte_ring_move_cons_head ( struct rte_ring r,
unsigned int  is_sc,
unsigned int  n,
enum rte_ring_queue_behavior  behavior,
uint32_t *  old_head,
uint32_t *  new_head,
uint32_t *  entries 
)
static
函数调用图:

◆ __rte_ring_move_prod_head()

static __rte_always_inline unsigned int __rte_ring_move_prod_head ( struct rte_ring r,
unsigned int  is_sp,
unsigned int  n,
enum rte_ring_queue_behavior  behavior,
uint32_t *  old_head,
uint32_t *  new_head,
uint32_t *  free_entries 
)
static
函数调用图:

◆ update_tail()

static __rte_always_inline void update_tail ( struct rte_ring_headtail ht,
uint32_t  old_val,
uint32_t  new_val,
uint32_t  single,
uint32_t  enqueue 
)
static