Page 1 of 1

simple kalloc / kfree algorythim

Posted: Tue Mar 21, 2006 6:51 pm
by 0xBADC0DE
Can somebody post a simple kalloc/free algorithym. I always seem to screw these parts up.

Re:simple kalloc / kfree algorythim

Posted: Tue Mar 21, 2006 10:39 pm
by Solar
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.

Re:simple kalloc / kfree algorythim

Posted: Wed Mar 22, 2006 3:46 am
by paulbarker
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