mmap-alloc header¶
The documentation of QEMU’s qemu/mmap-alloc.h
header.
Parameters
int fd
- the file or the device to mmap
size_t size
- the number of bytes to be mmaped
size_t align
- if not zero, specify the alignment of the starting mapping address; otherwise, the alignment in use will be determined by QEMU.
bool shared
- map has RAM_SHARED flag.
bool is_pmem
- map has RAM_PMEM flag.
Description
Parameters:
Return
On success, return a pointer to the mapped area. On failure, return MAP_FAILED.