The kernel radar: folios, multi-generational LRU, and Rust
The kernel radar: folios, multi-generational LRU, and Rust
Posted Jan 25, 2022 4:15 UTC (Tue) by artem (subscriber, #51262)In reply to: The kernel radar: folios, multi-generational LRU, and Rust by atnot
Parent article: The kernel radar: folios, multi-generational LRU, and Rust
> Once you put things into multiple collections you need some way of knowing whether you should free items when removing them.
> If you don't know whether it's the last reference, you need some kind of reference count
With multiple intrusive lists, you can declare some of them owning and some of them non-owning.
When a thing is not on any of the owning lists, it's removed from the rest and dropped.
No reference counting necessary.
How would one do that in Rust?
