Xen Test Framework
Macros
atomic.h File Reference
#include <xtf/lib.h>
#include <xtf/barrier.h>
+ Include dependency graph for atomic.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOAD_ACQUIRE(p)
 
#define STORE_RELEASE(p, v)
 

Macro Definition Documentation

◆ LOAD_ACQUIRE

#define LOAD_ACQUIRE (   p)
Value:
({ typeof(*p) _p = ACCESS_ONCE(*p); \
smp_rmb(); \
_p; \
})
#define _p(v)
Express an abitrary integer v as void *.
Definition: numbers.h:48
#define ACCESS_ONCE(x)
Definition: lib.h:10

Definition at line 7 of file atomic.h.

◆ STORE_RELEASE

#define STORE_RELEASE (   p,
 
)
Value:
({ smp_wmb(); \
ACCESS_ONCE(*p) = v; \
})
#define smp_wmb()
Definition: barrier.h:36

Definition at line 13 of file atomic.h.