|
@@ -1,8 +1,15 @@
|
|
#ifndef QEMU_MMAP_ALLOC_H
|
|
#ifndef QEMU_MMAP_ALLOC_H
|
|
#define QEMU_MMAP_ALLOC_H
|
|
#define QEMU_MMAP_ALLOC_H
|
|
|
|
|
|
|
|
+typedef enum {
|
|
|
|
+ QEMU_FS_TYPE_UNKNOWN = 0,
|
|
|
|
+ QEMU_FS_TYPE_TMPFS,
|
|
|
|
+ QEMU_FS_TYPE_HUGETLBFS,
|
|
|
|
+ QEMU_FS_TYPE_NUM,
|
|
|
|
+} QemuFsType;
|
|
|
|
|
|
size_t qemu_fd_getpagesize(int fd);
|
|
size_t qemu_fd_getpagesize(int fd);
|
|
|
|
+QemuFsType qemu_fd_getfs(int fd);
|
|
|
|
|
|
/**
|
|
/**
|
|
* qemu_ram_mmap: mmap anonymous memory, the specified file or device.
|
|
* qemu_ram_mmap: mmap anonymous memory, the specified file or device.
|