diff options
author | Alice Ryhl <[email protected]> | 2024-04-02 13:07:42 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2024-05-05 18:04:28 +0200 |
commit | 51f6af86de35bfd12a005caf457f2ec834193de8 (patch) | |
tree | 87da95d57ca618b435a28780469ecbf0a80641d0 /lib/memory-notifier-error-inject.c | |
parent | be2ca1e03965ffb214b6cbda0ffd84daeeb5f214 (diff) |
rust: sync: add `ArcBorrow::from_raw`
Allows access to a value in an `Arc` that is currently held as a raw
pointer due to use of `Arc::into_raw`, without destroying or otherwise
consuming that raw pointer.
This is a dependency of the linked list that Rust Binder uses. The
linked list uses this method when iterating over the linked list [1].
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/[email protected] [1]
Signed-off-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions