|
18 | 18 | #
|
19 | 19 | # By convention, a blank line in a cell means "same as the preceding line".
|
20 | 20 | #
|
| 21 | +# Note that the syntactic representation does not always match the sets and |
| 22 | +# relations in linux-kernel.cat, due to redefinitions in linux-kernel.bell and |
| 23 | +# lock.cat. For example, the po link between LKR and LKW is upgraded to an rmw |
| 24 | +# link, and W[acquire] are not included in the Acquire set. |
| 25 | +# |
21 | 26 | # Disclaimer. The table includes representations of "add" and "and" operations;
|
22 | 27 | # corresponding/identical representations of "sub", "inc", "dec" and "or", "xor",
|
23 | 28 | # "andnot" operations are omitted.
|
|
60 | 65 | ------------------------------------------------------------------------------
|
61 | 66 | | RMW ops w/o return value | |
|
62 | 67 | ------------------------------------------------------------------------------
|
63 |
| - | atomic_add | R*[noreturn] ->rmw W*[once] | |
| 68 | + | atomic_add | R*[noreturn] ->rmw W*[noreturn] | |
64 | 69 | | atomic_and | |
|
65 | 70 | | spin_lock | LKR ->po LKW |
|
66 | 71 | ------------------------------------------------------------------------------
|
67 | 72 | | RMW ops w/ return value | |
|
68 | 73 | ------------------------------------------------------------------------------
|
69 |
| - | atomic_add_return | F[mb] ->po R*[once] | |
70 |
| - | | ->rmw W*[once] ->po F[mb] | |
| 74 | + | atomic_add_return | R*[mb] ->rmw W*[mb] | |
71 | 75 | | atomic_fetch_add | |
|
72 | 76 | | atomic_fetch_and | |
|
73 | 77 | | atomic_xchg | |
|
|
79 | 83 | | atomic_xchg_relaxed | |
|
80 | 84 | | xchg_relaxed | |
|
81 | 85 | | atomic_add_negative_relaxed | |
|
82 |
| - | atomic_add_return_acquire | R*[acquire] ->rmw W*[once] | |
| 86 | + | atomic_add_return_acquire | R*[acquire] ->rmw W*[acquire] | |
83 | 87 | | atomic_fetch_add_acquire | |
|
84 | 88 | | atomic_fetch_and_acquire | |
|
85 | 89 | | atomic_xchg_acquire | |
|
86 | 90 | | xchg_acquire | |
|
87 | 91 | | atomic_add_negative_acquire | |
|
88 |
| - | atomic_add_return_release | R*[once] ->rmw W*[release] | |
| 92 | + | atomic_add_return_release | R*[release] ->rmw W*[release] | |
89 | 93 | | atomic_fetch_add_release | |
|
90 | 94 | | atomic_fetch_and_release | |
|
91 | 95 | | atomic_xchg_release | |
|
|
94 | 98 | ------------------------------------------------------------------------------
|
95 | 99 | | Conditional RMW ops | |
|
96 | 100 | ------------------------------------------------------------------------------
|
97 |
| - | atomic_cmpxchg | On success: F[mb] ->po R*[once] | |
98 |
| - | | ->rmw W*[once] ->po F[mb] | |
99 |
| - | | On failure: R*[once] | |
| 101 | + | atomic_cmpxchg | On success: R*[mb] ->rmw W*[mb] | |
| 102 | + | | On failure: R*[mb] | |
100 | 103 | | cmpxchg | |
|
101 | 104 | | atomic_add_unless | |
|
102 | 105 | | atomic_cmpxchg_relaxed | On success: R*[once] ->rmw W*[once] |
|
103 | 106 | | | On failure: R*[once] |
|
104 |
| - | atomic_cmpxchg_acquire | On success: R*[acquire] ->rmw W*[once] | |
105 |
| - | | On failure: R*[once] | |
106 |
| - | atomic_cmpxchg_release | On success: R*[once] ->rmw W*[release] | |
107 |
| - | | On failure: R*[once] | |
| 107 | + | atomic_cmpxchg_acquire | On success: R*[acquire] ->rmw W*[acquire] | |
| 108 | + | | On failure: R*[acquire] | |
| 109 | + | atomic_cmpxchg_release | On success: R*[release] ->rmw W*[release] | |
| 110 | + | | On failure: R*[release] | |
108 | 111 | | spin_trylock | On success: LKR ->po LKW |
|
109 | 112 | | | On failure: LF |
|
110 | 113 | ------------------------------------------------------------------------------
|
0 commit comments