simple kalloc / kfree algorythim
simple kalloc / kfree algorythim
Can somebody post a simple kalloc/free algorithym. I always seem to screw these parts up.
Re:simple kalloc / kfree algorythim
Without knowing the primitives of your memory manager, that's pretty hard.
You do have a memory manager, have you?
There are many links to example sources in the FAQ. You might also want to have a look at my signature and follow the first link.
You do have a memory manager, have you?
There are many links to example sources in the FAQ. You might also want to have a look at my signature and follow the first link.
Every good solution is obvious once you've found it.
Re:simple kalloc / kfree algorythim
My personal choice was to drop John Walker's bget into my OS, and implement kalloc() and kfree() as a wrapper around this. Google for it.
Cheers,
Paul Barker
Cheers,
Paul Barker