Different kernel heap implementations
Posted: Mon May 18, 2015 11:12 am
Hi!
I've looked at the heap implementations on the wiki. My problem is that I can't really interpret other people's code, and I always like to write my own. And I've found no explanations for how these implementations work.
My own implementation consisted of headers and footers surrounding the allocated memory, but it got overcomplicated when I wanted to add the feature for page aligned allocation, that's why I'm trying to look at other approaches.
Could anyone explain briefly how do the different implementations work? (stack, slab, ...)
Thanks in advance!
I've looked at the heap implementations on the wiki. My problem is that I can't really interpret other people's code, and I always like to write my own. And I've found no explanations for how these implementations work.
My own implementation consisted of headers and footers surrounding the allocated memory, but it got overcomplicated when I wanted to add the feature for page aligned allocation, that's why I'm trying to look at other approaches.
Could anyone explain briefly how do the different implementations work? (stack, slab, ...)
Thanks in advance!