simple kalloc / kfree algorythim

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
0xBADC0DE

simple kalloc / kfree algorythim

Post by 0xBADC0DE »

Can somebody post a simple kalloc/free algorithym. I always seem to screw these parts up.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:simple kalloc / kfree algorythim

Post 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.
Every good solution is obvious once you've found it.
paulbarker

Re:simple kalloc / kfree algorythim

Post 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
Post Reply