/external/swiftshader/tests/SystemUnitTests/ |
D | unittests.cpp | 30 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() local 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.isValid()); in TEST() [all …]
|
/external/linux-kselftest/tools/testing/selftests/drivers/dma-buf/ |
D | udmabuf.c | 26 int devfd, memfd, buf, ret; in main() local 36 memfd = memfd_create("udmabuf-test", MFD_ALLOW_SEALING); in main() 37 if (memfd < 0) { in main() 42 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main() 50 ret = ftruncate(memfd, size); in main() 59 create.memfd = memfd; in main() 69 create.memfd = memfd; in main() 79 create.memfd = 0; /* stdin */ in main() 89 create.memfd = memfd; in main() 100 close(memfd); in main()
|
/external/swiftshader/src/Vulkan/ |
D | VkDeviceMemoryExternalLinux.hpp | 40 memfd.close(); in ~OpaqueFdExternalMemory() 47 memfd.importFd(allocateInfo.fd); in allocate() 48 if(!memfd.isValid()) in allocate() 59 if(!memfd.allocate(name, size)) in allocate() 65 void *addr = memfd.mapReadWrite(0, size); in allocate() 76 memfd.unmap(buffer, size); in deallocate() 86 int fd = memfd.exportFd(); in exportFd() 96 LinuxMemFd memfd; member in OpaqueFdExternalMemory
|
D | VkSemaphoreExternalLinux.hpp | 148 if(!memfd.allocate(name, size)) in init() 163 memfd.importFd(fd); in importOpaqueFd() 175 int fd = memfd.exportFd(); in exportOpaqueFd() 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
|
/external/kernel-headers/original/uapi/linux/ |
D | udmabuf.h | 11 __u32 memfd; member 18 __u32 memfd; member
|
/external/bcc/src/cc/usdt/ |
D | usdt.cc | 95 int memfd = ::open(procmem.c_str(), O_RDWR); in add_to_semaphore() local 96 if (memfd < 0) in add_to_semaphore() 101 if (::lseek(memfd, address, SEEK_SET) < 0 || in add_to_semaphore() 102 ::read(memfd, &original, 2) != 2) { in add_to_semaphore() 103 ::close(memfd); in add_to_semaphore() 109 if (::lseek(memfd, address, SEEK_SET) < 0 || in add_to_semaphore() 110 ::write(memfd, &original, 2) != 2) { in add_to_semaphore() 111 ::close(memfd); in add_to_semaphore() 115 ::close(memfd); in add_to_semaphore()
|
/external/libiio/src/ |
D | network.c | 95 int memfd; member 802 if (pdata->memfd >= 0) in network_close() 803 close(pdata->memfd); in network_close() 804 pdata->memfd = -1; in network_close() 985 fd_out = pdata->memfd; in network_do_splice() 987 fd_in = pdata->memfd; in network_do_splice() 1043 int memfd; in network_get_buffer() local 1054 memfd = open(P_tmpdir, O_RDWR | O_TMPFILE | O_EXCL | O_CLOEXEC, S_IRWXU); in network_get_buffer() 1055 if (memfd < 0) in network_get_buffer() 1059 close(memfd); in network_get_buffer() [all …]
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | android-cloexec-memfd-create.rst | 1 .. title:: clang-tidy - android-cloexec-memfd-create 3 android-cloexec-memfd-create
|
/external/crosvm/devices/src/virtio/gpu/ |
D | udmabuf_bindings.rs | 54 pub memfd: __u32, field 62 pub memfd: __u32, field
|
D | udmabuf.rs | 147 items[i].memfd = mem.shm_region(addr).unwrap().as_raw_descriptor() as u32; in create_udmabuf()
|
/external/perfetto/src/tracing/ipc/ |
D | BUILD.gn | 31 "memfd.cc", 32 "memfd.h",
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | .gitignore | 4 memfd-test-file
|
D | run_fuse_test.sh | 13 ./fuse_test ./mnt/memfd $@
|
/external/crosvm/seccomp/aarch64/ |
D | wl_device.policy | 15 # Used to set of size new memfd
|
/external/perfetto/test/trace_processor/profiling/ |
D | heap_profile_deobfuscate_memfd.textproto | 43 str: "memfd:jit-cache"
|
/external/crosvm/seccomp/arm/ |
D | wl_device.policy | 16 # Used to set of size new memfd
|
/external/crosvm/seccomp/x86_64/ |
D | wl_device.policy | 14 # Used to set of size new memfd
|
D | gpu_device.policy | 54 # Used to set of size new memfd.
|
/external/rust/crates/nix/src/sys/ |
D | mod.rs | 36 pub mod memfd; module
|
/external/crosvm/src/plugin/ |
D | process.rs | 347 memfd: File, in handle_memory() 354 let shm = SharedMemory::from_file(memfd)?; in handle_memory() 553 Some(memfd) => Self::handle_memory( in handle_socket() 556 memfd, in handle_socket()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_userptr_blits.c | 1076 int memfd; in test_readonly() local 1091 memfd = memfd_create("pages", 0); in test_readonly() 1092 igt_require(memfd != -1); in test_readonly() 1093 igt_require(ftruncate(memfd, sz) == 0); in test_readonly() 1095 pages = mmap(NULL, sz, PROT_WRITE, MAP_SHARED, memfd, 0); in test_readonly() 1122 memfd, 0) != MAP_FAILED); in test_readonly() 1127 close(memfd); in test_readonly()
|
/external/linux-kselftest/tools/testing/selftests/ |
D | Makefile | 30 TARGETS += memfd
|
/external/perfetto/docs/design-docs/ |
D | heapprofd-wire-protocol.md | 71 …it to disconnect from the client. It unmaps the shared memory, closes the memfd, and then closes t…
|
/external/mesa3d/docs/relnotes/ |
D | 19.1.8.rst | 135 - util: add anon_file.h for all memfd/temp file usage
|
/external/crosvm/protos/src/ |
D | plugin.proto | 56 // This message also requires a memfd sent over the socket.
|