Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
On most UNIX implementations, once a mapping has been created, its location and size can’t be changed. However, Linux provides the (nonportable) mremap() system call, which permits such changes.
#define _GNU_SOURCE #include <sys/mman.h> void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, ...);