Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can malloc/free allocate from a specified memory range?

Free malloc memory range
0
Posted

Can malloc/free allocate from a specified memory range?

0

> Using mmap to share data between processes leads to the requirement to > dynamically allocate and free shared memory blocks. I don’t want to > mmap each block separately, but prefer to allocate and free the memory > from within the mapped region. Is there a way to redirect malloc/free > library functions to allocate from a specified memory range, instead of > the heap? > > I don’t want to mmap each block separately or to use shmget because of > the cost of so many mappings. > > -K The mmalloc package at: http://sources.redhat.com/gdb/5/onlinedocs/mmalloc.html might be a good starting point.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123