Go to the source code of this file.
|
#define | mb() __asm__ __volatile__ ("mfence" ::: "memory") |
|
#define | rmb() __asm__ __volatile__ ("lfence" ::: "memory") |
|
#define | wmb() __asm__ __volatile__ ("sfence" ::: "memory") |
|
#define | smp_mb() __asm__ __volatile__ ("lock addl $0, -4(%%rsp)" ::: "memory"); |
|
#define | smp_rmb() barrier() |
|
#define | smp_wmb() barrier() |
|
◆ mb
#define mb |
( |
| ) |
__asm__ __volatile__ ("mfence" ::: "memory") |
◆ rmb
#define rmb |
( |
| ) |
__asm__ __volatile__ ("lfence" ::: "memory") |
◆ wmb
#define wmb |
( |
| ) |
__asm__ __volatile__ ("sfence" ::: "memory") |
◆ smp_mb
#define smp_mb |
( |
| ) |
__asm__ __volatile__ ("lock addl $0, -4(%%rsp)" ::: "memory"); |
◆ smp_rmb
◆ smp_wmb