EmbLogic's Blog

Difference in malloc,vmalloc,kmalloc

Malloc :-

It is presnt in C library. It allocates memory in user space

Vmalloc:-

It is shared object. If used in user space act as malloc. If used in kernel space then act as kmalloc.

Kmalloc:-

It allocates the space in kernel space.It is in symbol table of kernel.The memory is allocated in form of 4k pages(4096 bytes ).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>