diff options
| author | Marc-André Lureau | 2017-10-23 16:18:07 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2018-01-19 14:18:51 +0100 |
| commit | dcff1035dfdfb4c76634df64a5359ac18749f7ca (patch) | |
| tree | 719e554270c95335c019003d20c64047cd68a61f /include | |
| parent | Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (diff) | |
| download | qemu-dcff1035dfdfb4c76634df64a5359ac18749f7ca.tar.gz qemu-dcff1035dfdfb4c76634df64a5359ac18749f7ca.tar.xz qemu-dcff1035dfdfb4c76634df64a5359ac18749f7ca.zip | |
memfd: split qemu_memfd_alloc()
Add a function to only create a memfd, without mmap. The function is
used in the following memory backend.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20171023141815.17709-2-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/memfd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/memfd.h b/include/qemu/memfd.h index 745a8c501e..41c24d807c 100644 --- a/include/qemu/memfd.h +++ b/include/qemu/memfd.h @@ -16,6 +16,7 @@ #define F_SEAL_WRITE 0x0008 /* prevent writes */ #endif +int qemu_memfd_create(const char *name, size_t size, unsigned int seals); void *qemu_memfd_alloc(const char *name, size_t size, unsigned int seals, int *fd); void qemu_memfd_free(void *ptr, size_t size, int fd); |
