Mon Aug 17 19:34:43 CEST 2009

mmap() tricks

How to use mmap() for memory allocation tricks?  Say I want to
allocate a single 4K page into my address space, and free it later.
Can this be done using mmap?

It's possible to place a page at a fixed address using MAP_FIXED.