Skip to content

Make HoleList public or make Heap::extend accept non contiguous areas #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MarcoCicognani opened this issue Nov 24, 2020 · 2 comments
Closed

Comments

@MarcoCicognani
Copy link
Contributor

Hi, I'm a follower of your work, that is excellent.
I currently develop a Rust OS based on the crates and the blog you wrote, but the user space allocation memory model doesn't follow the classic sbrk-like schema, instead uses a mmap oriented one.
So i gently request you to allow linked_list_allocator accept non contiguous areas in Heap::extend(by: usize) as extensions simply modifying the method to Heap::extend(start_addr: usize, size: usize).
Otherwise you could make public the HoleList module to allow external uses.

best regards Marco Cicognani

@MarcoCicognani
Copy link
Contributor Author

I know that with an Heap::extend_with_region(start_addr: usize, size: usize) top make no more sense, but in my specific case it doesn't matter

@phil-opp
Copy link
Member

Resolved in #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants