barrier.h File Reference

Memory barriers. More...

Macros

#define spdk_compiler_barrier()   __asm volatile("" ::: "memory")
 Compiler memory barrier.
 
#define spdk_rmb()   _spdk_rmb()
 Read memory barrier.
 
#define spdk_wmb()   _spdk_wmb()
 Write memory barrier.
 
#define spdk_mb()   _spdk_mb()
 Full read/write memory barrier.
 
#define spdk_smp_rmb()   _spdk_smp_rmb()
 SMP read memory barrier. More...
 
#define spdk_smp_wmb()   _spdk_smp_wmb()
 SMP write memory barrier. More...
 
#define spdk_smp_mb()   _spdk_smp_mb()
 SMP read/write memory barrier. More...
 
#define _spdk_rmb()
 
#define _spdk_wmb()
 
#define _spdk_mb()
 
#define _spdk_smp_rmb()
 
#define _spdk_smp_wmb()
 
#define _spdk_smp_mb()
 

Detailed Description

Memory barriers.

Macro Definition Documentation

◆ spdk_smp_mb

#define spdk_smp_mb ( )    _spdk_smp_mb()

SMP read/write memory barrier.

◆ spdk_smp_rmb

#define spdk_smp_rmb ( )    _spdk_smp_rmb()

SMP read memory barrier.

◆ spdk_smp_wmb

#define spdk_smp_wmb ( )    _spdk_smp_wmb()

SMP write memory barrier.