aboutsummaryrefslogtreecommitdiffstats
path: root/include/qemu/mmap-alloc.h
blob: 0899b2f01e97ad30d621f60c20f89b8c26f2af8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef QEMU_MMAP_ALLOC
#define QEMU_MMAP_ALLOC

#include "qemu-common.h"

size_t qemu_fd_getpagesize(int fd);

void *qemu_ram_mmap(int fd, size_t size, size_t align, bool shared);

void qemu_ram_munmap(void *ptr, size_t size);

#endif