More Rust concepts for the kernel
More Rust concepts for the kernel
Posted Sep 21, 2021 9:31 UTC (Tue) by pbonzini (subscriber, #60935)In reply to: More Rust concepts for the kernel by roc
Parent article: More Rust concepts for the kernel
Posted Sep 22, 2021 0:22 UTC (Wed)
by roc (subscriber, #30627)
[Link] (1 responses)
You may be able to use something similar to qcell to handle it --- https://docs.rs/qcell/0.4.3/qcell/index.html. Basically have a mutex that hands out an exclusively-owned access token, and the access token can be used to "lock" multiple protected data items without actually taking a lock.
Posted Sep 22, 2021 0:23 UTC (Wed)
by roc (subscriber, #30627)
[Link]
More Rust concepts for the kernel
More Rust concepts for the kernel