summaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2023-04-11 02:45:43 -0300
committerMiguel Ojeda <ojeda@kernel.org>2023-04-22 00:20:00 +0200
commit7b1f55e3a984aaed0121f90f9f8580f18b7b561e (patch)
tree2963fe572363ca7b88310a2cf5ab014d2e8374e2 /rust/helpers.c
parent8da7a2b7432e8f043f04515895687f72cdb3e0a8 (diff)
rust: sync: introduce `LockedBy`
This allows us to have data protected by a lock despite not being wrapped by it. Access is granted by providing evidence that the lock is held by the caller. Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20230411054543.21278-13-wedsonaf@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions