man7.org > Linux > man-pages NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | CONFORMING TO | AVAILABILITY | NOTES | BUGS | EXAMPLE | SEE ALSO | COLOPHON Linux/UNIX system programming training MMAP(2) Linux Programmer's Manual MMAP(2) top mmap, munmap - map or unmap files or devices into memory top #include <sys/mman.h> void *mmap(void * addr , size_t length , int prot , int flags , int fd , off_t offset ); int munmap(void * addr , size_t length ); See NOTES for information on feature test macro requirements. top mmap () creates a new mapping in the virtual address space of the calling process. The starting address for the new mapping is specified in addr . The length argument specifies the length of the mapping. If addr is NULL, then the kernel chooses the address at which to create...