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.
Basically I am saying, I want a char * ptr to a 256 long buffer... however, when the memory manager gets that kmalloc request, it going to dump 4096 bytes on the request. Is that right?
Basically I am saying, I want a char * ptr to a 256 long buffer... however, when the memory manager gets that kmalloc request, it going to dump 4096 bytes on the request. Is that right?
No, you build a virtual memory allocator on top of the page allocator.
In the simplest case, you provide an sbrk() like function in your kernel that a malloc-implementation calls to map and unmap physical pages on demand.
For instance, porting dlmalloc (google it) to a new kernel is fairly easy, and is enough to get you started.