Home
last modified time | relevance | path

Searched refs:memfd (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/tests/SystemUnitTests/
H A Dunittests.cpp30 LinuxMemFd memfd; in TEST() local
31 ASSERT_FALSE(memfd.isValid()); in TEST()
32 ASSERT_EQ(-1, memfd.exportFd()); in TEST()
38 LinuxMemFd memfd("test-region", kRegionSize); in TEST()
39 ASSERT_TRUE(memfd.isValid()); in TEST()
40 ASSERT_GE(memfd.fd(), 0); in TEST()
41 void *addr = memfd.mapReadWrite(0, kRegionSize); in TEST()
43 memfd.unmap(addr, kRegionSize); in TEST()
49 LinuxMemFd memfd; in TEST() local
50 ASSERT_FALSE(memfd in TEST()
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkDeviceMemoryExternalLinux.hpp43 memfd.close(); in ~OpaqueFdExternalMemory()
50 memfd.importFd(allocateInfo.fd);
51 if(!memfd.isValid())
62 if(!memfd.allocate(name, allocationSize))
64 TRACE("memfd.allocate() returned %s", strerror(errno));
68 void *addr = memfd.mapReadWrite(0, allocationSize);
79 memfd.unmap(buffer, allocationSize);
89 int fd = memfd.exportFd();
99 LinuxMemFd memfd; member in OpaqueFdExternalMemory
H A DVkSemaphoreExternalLinux.hpp26 // An external semaphore implementation for Linux, that uses memfd-backed
148 if(!memfd.allocate(name, size))
150 TRACE("memfd.allocate() returned %s", strerror(errno));
163 memfd.importFd(fd);
175 int fd = memfd.exportFd();
208 memfd.unmap(semaphore, sw::memoryPageSize()); in unmapRegion()
209 memfd.close(); in unmapRegion()
218 void *addr = memfd.mapReadWrite(0, size); in mapRegion()
236 LinuxMemFd memfd; member in vk::OpaqueFdExternalSemaphore
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_memory_helper.c45 * To do so, we use the memfd feature of the linux kernel. It enables to allocate a file
73 * Multiple memfd files are used, each of 100MB. Thus memory usage (but not virtual memory usage) increases
77 * One allocation is given one page-aligned region inside a memfd file.
87 #include <linux/memfd.h>
112 /* Use memfd only for 32 bits. Check for memfd_create support */
139 /* The allocation is stored inside a memfd */
141 /* The allocation is part of another allocation, which is stored inside a memfd */
179 struct nine_memfd_allocation memfd; member
185 /* The fields below are only used for memfd/submemfd allocations */
204 int num_fd_max; /* Max number of memfd file
[all...]
/third_party/mesa3d/src/util/
H A Danon_file.c42 #include <linux/memfd.h>
107 * If memfd or SHM_ANON is supported, the filesystem is not touched at all.
/third_party/rust/crates/nix/src/sys/
H A Dmod.rs56 pub mod memfd; modules
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
H A Dmemfd_create_common.h21 #include <lapi/memfd.h>
/third_party/rust/crates/linux-raw-sys/gen/modules/
H A Dgeneral.h44 #include <linux/memfd.h>
/third_party/mesa3d/src/drm-shim/
H A Ddevice.c32 #include <linux/memfd.h>
/third_party/libbpf/src/
H A Dlibbpf_internal.h26 #include <linux/memfd.h>
/third_party/pulseaudio/src/pulsecore/
H A Dshm.c52 #include <pulsecore/memfd-wrappers.h>
301 /* We shouldn't be here without shm or memfd support */ in pa_shm_free()
405 /* In case of attaching to memfd areas, _the caller_ maintains in shm_attach()
/third_party/python/Modules/
H A Dposixmodule.c522 /* memfd_create is either defined in sys/mman.h or sys/memfd.h
523 * linux/memfd.h defines additional flags
529 # include <sys/memfd.h>
532 # include <linux/memfd.h>

Completed in 22 milliseconds