Commit 505a6c7
committed
rust: add rcu_dereference_raw
Implement rcu_dereference_raw by calling into READ_ONCE. This function
is intended for reading pointers in an rcu_read_lock region. It
establishes a consume ordering, so it is valid to read the memory behind
the pointer.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>1 parent d7d18ad commit 505a6c7
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments