diff options
author | Alice Ryhl <aliceryhl@google.com> | 2025-03-08 02:26:57 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-08 02:55:04 +0300 |
commit | 8f65291dae0e75941cf76e427088e5612c4d692e (patch) | |
tree | ecd11abd799fd359bb94046399f3f13c7b6f19c2 /rust/helpers/helpers.c | |
parent | de4b59d652646cf00cf632174348ca2266099edc (diff) | |
download | linux-8f65291dae0e75941cf76e427088e5612c4d692e.tar.xz |
rust: sync: Add accessor for the lock behind a given guard
In order to assert a particular `Guard` is associated with a particular
`Lock`, add an accessor to obtain a reference to the underlying `Lock`
of a `Guard`.
Binder needs this assertion to ensure unsafe list operations are done
with the correct lock held.
[Boqun: Capitalize the title and reword the commit log]
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Link: https://lore.kernel.org/r/20250205-guard-get-lock-v2-1-ba32a8c1d5b7@google.com
Link: https://lore.kernel.org/r/20250307232717.1759087-8-boqun.feng@gmail.com
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions