Your question concerns user-space malloc() implementations
of which there are many to choose from.
I suggest studying GNU LIBC (glibc) sources and documentations,
and libc-5 sources, and documents.
This question does not have anything to do with KERNEL memory
management issues.
> _/ _/ Vijo Cherian
Hmm.. Lenghty signature without email address in it.
/Matti Aarnio <matti.aarnio@tele.fi>