Path: blob/master/tools/memory-model/Documentation/cheatsheet.txt
26282 views
Prior Operation Subsequent Operation1--------------- ---------------------------2C Self R W RMW Self R W DR DW RMW SV3-- ---- - - --- ---- - - -- -- --- --45Relaxed store Y Y6Relaxed load Y Y Y Y7Relaxed RMW operation Y Y Y Y8rcu_dereference() Y Y Y Y9Successful *_acquire() R Y Y Y Y Y Y10Successful *_release() C Y Y Y W Y11smp_rmb() Y R Y Y R12smp_wmb() Y W Y Y W13smp_mb() & synchronize_rcu() CP Y Y Y Y Y Y Y Y14Successful full non-void RMW CP Y Y Y Y Y Y Y Y Y Y Y15smp_mb__before_atomic() CP Y Y Y a a a a Y16smp_mb__after_atomic() CP a a Y Y Y Y Y Y171819Key: Relaxed: A relaxed operation is either READ_ONCE(), WRITE_ONCE(),20a *_relaxed() RMW operation, an unsuccessful RMW21operation, a non-value-returning RMW operation such22as atomic_inc(), or one of the atomic*_read() and23atomic*_set() family of operations.24C: Ordering is cumulative25P: Ordering propagates26R: Read, for example, READ_ONCE(), or read portion of RMW27W: Write, for example, WRITE_ONCE(), or write portion of RMW28Y: Provides ordering29a: Provides ordering given intervening RMW atomic operation30DR: Dependent read (address dependency)31DW: Dependent write (address, data, or control dependency)32RMW: Atomic read-modify-write operation33SELF: Orders self, as opposed to accesses before and/or after34SV: Orders later accesses to the same variable353637