summaryrefslogtreecommitdiffstats
path: root/rust/kernel/sync/locked_by.rs
Commit message (Collapse)AuthorAgeFilesLines
* rust: sync: introduce `LockedBy`Wedson Almeida Filho2023-04-221-0/+156
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>