vfio/ccw: allocate irq info with the right size
[qemu.git] / include / qemu / mmap-alloc.h
blob50385e3f818567f5fed5846b63b98ac68d037612
1 #ifndef QEMU_MMAP_ALLOC_H
2 #define QEMU_MMAP_ALLOC_H
4 #include "qemu-common.h"
6 size_t qemu_fd_getpagesize(int fd);
8 size_t qemu_mempath_getpagesize(const char *mem_path);
10 void *qemu_ram_mmap(int fd, size_t size, size_t align, bool shared);
12 void qemu_ram_munmap(void *ptr, size_t size);
14 #endif