Home
last modified time | relevance | path

Searched refs:memfd (Results 1 – 25 of 38) sorted by relevance

12

/external/swiftshader/tests/SystemUnitTests/
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() 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/
Dudmabuf.c26 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/
DVkDeviceMemoryExternalLinux.hpp40 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
DVkSemaphoreExternalLinux.hpp148 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/bcc/src/cc/usdt/
Dusdt.cc95 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/
Dnetwork.c95 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/kernel-headers/original/uapi/linux/
Dudmabuf.h11 __u32 memfd; member
18 __u32 memfd; member
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dandroid-cloexec-memfd-create.rst1 .. title:: clang-tidy - android-cloexec-memfd-create
3 android-cloexec-memfd-create
/external/crosvm/devices/src/virtio/gpu/
Dudmabuf_bindings.rs54 pub memfd: __u32, field
62 pub memfd: __u32, field
Dudmabuf.rs147 items[i].memfd = mem.shm_region(addr).unwrap().as_raw_descriptor() as u32; in create_udmabuf()
/external/perfetto/src/tracing/ipc/
DBUILD.gn31 "memfd.cc",
32 "memfd.h",
/external/linux-kselftest/tools/testing/selftests/memfd/
D.gitignore4 memfd-test-file
Drun_fuse_test.sh13 ./fuse_test ./mnt/memfd $@
/external/perfetto/test/trace_processor/profiling/
Dheap_profile_deobfuscate_memfd.textproto43 str: "memfd:jit-cache"
/external/crosvm/seccomp/aarch64/
Dwl_device.policy15 # Used to set of size new memfd
/external/crosvm/seccomp/x86_64/
Dwl_device.policy14 # Used to set of size new memfd
Dgpu_device.policy54 # Used to set of size new memfd.
/external/crosvm/seccomp/arm/
Dwl_device.policy16 # Used to set of size new memfd
/external/rust/crates/nix/src/sys/
Dmod.rs36 pub mod memfd; module
/external/crosvm/src/plugin/
Dprocess.rs347 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/
Dgem_userptr_blits.c1076 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/
DMakefile30 TARGETS += memfd
/external/mesa3d/docs/relnotes/
D19.1.8.rst135 - util: add anon_file.h for all memfd/temp file usage
/external/perfetto/docs/design-docs/
Dheapprofd-wire-protocol.md71 …it to disconnect from the client. It unmaps the shared memory, closes the memfd, and then closes t…
/external/crosvm/protos/src/
Dplugin.proto56 // This message also requires a memfd sent over the socket.

12