Commit 2163086
committed
eBPF.md: Document atomic exchange and atomic compare-and-write
Atomic exchange and atomic compare-and-write are selected when the
immediate value for an atomic operation is set to BPF_XCHG (0xe0) |
BPF_FETCH (1) and BPF_CMPXCHG (0xf0) | BPF_FETCH (1), respectively.
This is supported in the kernel since commit:
5ffa25502b5a ("bpf: Add instructions for atomic_[cmp]xchg")1 parent 37e3229 commit 2163086
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| 246 | + | |
| 247 | + | |
0 commit comments