FEMU  原版 master 7e238cc
FEMU: Accurate, Scalable and Extensible NVMe SSD Emulator (FAST'18)
rte_atomic_x86.h 文件参考
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define rte_compiler_barrier()
 
#define MPLOCKED   "lock ; "
 
#define rte_smp_wmb()   rte_compiler_barrier()
 
#define rte_smp_rmb()   rte_compiler_barrier()
 

函数

static int rte_atomic32_cmpset (volatile uint32_t *dst, uint32_t exp, uint32_t src)
 

宏定义说明

◆ MPLOCKED

#define MPLOCKED   "lock ; "

◆ rte_compiler_barrier

#define rte_compiler_barrier ( )
值:
do { \
asm volatile ("" : : : "memory"); \
} while(0)

Compiler barrier.

Guarantees that operation reordering does not occur at compile time for operations directly before and after the barrier.

◆ rte_smp_rmb

#define rte_smp_rmb ( )    rte_compiler_barrier()

◆ rte_smp_wmb

#define rte_smp_wmb ( )    rte_compiler_barrier()

函数说明

◆ rte_atomic32_cmpset()

static int rte_atomic32_cmpset ( volatile uint32_t *  dst,
uint32_t  exp,
uint32_t  src 
)
inlinestatic
这是这个函数的调用关系图: