Mmap
mmap - system call that instructs the operating system to map a portion of the selected file in the process address space. This operation causes the file space to refer to a normal byte array in memory, eliminating the need to use additional read or write system calls. For this reason, this operation is often used to speed up the operation of large files.
void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
The meaning of each parameter:
To resolve the mapping, use the munmap call.
wiki
Comments
Post a Comment