Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 49. Memory Mappings > Remapping a Mapped Region: mremap()

49.8. Remapping a Mapped Region: mremap()

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, ...);


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial