kernel heap

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
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

kernel heap

Post by digo_rp »

Hi, guys, it´s nice to be here again :-D

I have one question, please in case of looking a stupid question, forgive-me please.

What is kernel heap? I read in so much pages at google, but as my english is so poor, I cannot understand at all.

could anyone helps me please.
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: kernel heap

Post by gravaera »

Yo,

The kernel provides page-level memory management. Userspace provides arbitrarily-sized allocation granularity by taking the kernel's page-granular allocator and breaking down large the large chunks returned by it into small blocks. The name of the abstraction that breaks down page-size allocations from the kernel into small blocks is the "heap".

Some people also provide a heap for kernel space. Heap functions are things like C's malloc()/free(), C++'s new()/delete(), pascal's new()/dispose(), etc. They return memory of the size you indicated.

--All the best,
gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: kernel heap

Post by digo_rp »

tnx a lot man, as my english is so poor, some stuf I cannot understand well, then I try some translator,

but is nothing like really understand ....

:-D
Post Reply