[PATCH v3 0/2] rust: Add Lock::from_raw() and expose Guard::new()

Lyude Paul posted 2 patches 3 weeks, 2 days ago
There is a newer version of this series
rust/kernel/sync/lock.rs | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
[PATCH v3 0/2] rust: Add Lock::from_raw() and expose Guard::new()
Posted by Lyude Paul 3 weeks, 2 days ago
This is the third version of a small patch series to introduce
interfaces for working with locks that we've acquired from raw C
pointers, something that is quite useful for bindings like the rust
bindings - where there's a number of interfaces protected by BFLs, or
which require the implementation of callbacks that are known to occur
under lock.

Lyude Paul (2):
  rust: sync: Add Lock::from_raw() for Lock<(), B>
  rust: sync: Make Guard::new() public

 rust/kernel/sync/lock.rs | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)


base-commit: 718c4069896cabba5c39b637cbb7205927f16ae0
-- 
2.47.0