Locking
Locking
Posted Sep 24, 2024 22:34 UTC (Tue) by NYKevin (subscriber, #129325)In reply to: Locking by NYKevin
Parent article: Resources for learning Rust for kernel development
So I looked around a bit more and there are at least two crates which already do something resembling the above:
https://docs.rs/ordered-locks/latest/ordered_locks/
https://docs.rs/lock_ordering/latest/lock_ordering/
So yes, this is a thing you can do. Whether it is entirely feasible for very large and complicated lock hierarchies is still unclear to me.