nuta / kerla

A new operating system kernel with Linux binary compatibility written in Rust.
Other
3.33k stars 89 forks source link

Support freeing pages #120

Closed nuta closed 2 years ago

nuta commented 2 years ago

Add free_pages and a new allocator supporting freeing pages BitMapAllocator.

This commit also introduces OwnedPages, which owns dynamically allocated pages and will automatically frees the pages on drop.