Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/drivers/dma-buf/
A Dudmabuf.c29 int devfd, memfd, buf, ret; in main() local
39 memfd = memfd_create("udmabuf-test", MFD_ALLOW_SEALING); in main()
40 if (memfd < 0) { in main()
45 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main()
53 ret = ftruncate(memfd, size); in main()
62 create.memfd = memfd; in main()
72 create.memfd = memfd; in main()
82 create.memfd = 0; /* stdin */ in main()
92 create.memfd = memfd; in main()
103 close(memfd); in main()
/linux/drivers/dma-buf/
A Dudmabuf.c168 struct file *memfd = NULL; in udmabuf_create() local
203 memfd = fget(list[i].memfd); in udmabuf_create()
204 if (!memfd) in udmabuf_create()
218 if (is_file_hugepages(memfd)) { in udmabuf_create()
219 hpstate = hstate_file(memfd); in udmabuf_create()
226 if (is_file_hugepages(memfd)) { in udmabuf_create()
254 fput(memfd); in udmabuf_create()
255 memfd = NULL; in udmabuf_create()
282 if (memfd) in udmabuf_create()
283 fput(memfd); in udmabuf_create()
[all …]
A DKconfig39 A driver to let userspace turn memfd regions into dma-bufs.
/linux/tools/testing/selftests/pidfd/
A Dpidfd_getfd_test.c36 static int __child(int sk, int memfd) in __child() argument
52 ret = send(sk, &memfd, sizeof(memfd), 0); in __child()
53 if (ret != sizeof(memfd)) { in __child()
100 int memfd, ret; in child() local
102 memfd = sys_memfd_create("test", 0); in child()
103 if (memfd < 0) { in child()
108 ret = __child(sk, memfd); in child()
109 close(memfd); in child()
/linux/include/uapi/linux/
A Dudmabuf.h11 __u32 memfd; member
18 __u32 memfd; member
/linux/tools/testing/selftests/memfd/
A D.gitignore5 memfd-test-file
A Drun_fuse_test.sh13 ./fuse_test ./mnt/memfd $@
/linux/mm/
A D.memfd.o.cmd1memfd.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aa…
3 source_mm/memfd.o := mm/memfd.c
5 deps_mm/memfd.o := \
1270 include/linux/memfd.h \
1272 include/uapi/linux/memfd.h \
1274 mm/memfd.o: $(deps_mm/memfd.o)
1276 $(deps_mm/memfd.o):
A Dbuilt-in.a76 memfd.o/
A D.built-in.a.cmd1 …n.o mm/early_ioremap.o mm/cma.o mm/balloon_compaction.o mm/secretmem.o mm/memfd.o mm/page_reportin…
A DMakefile126 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
A D.secretmem.o.cmd1199 include/linux/memfd.h \
A D.shmem.o.cmd1297 include/uapi/linux/memfd.h \
/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c3966 int status, listener, memfd, fd, nextfd; in TEST() local
3976 memfd = memfd_create("test", 0); in TEST()
3977 ASSERT_GE(memfd, 0); in TEST()
3978 nextfd = memfd + 1; in TEST()
4008 addfd.srcfd = memfd; in TEST()
4117 close(memfd); in TEST()
4124 int status, listener, memfd; in TEST() local
4133 memfd = memfd_create("test", 0); in TEST()
4134 ASSERT_GE(memfd, 0); in TEST()
4157 addfd.srcfd = memfd; in TEST()
[all …]
/linux/tools/testing/selftests/
A DMakefile33 TARGETS += memfd
/linux/Documentation/arm64/
A Dmemory-tagging-extension.rst47 RAM-based file mappings (``tmpfs``, ``memfd``). Passing it to other
/linux/fs/
A D.fcntl.o.cmd1212 include/linux/memfd.h \

Completed in 36 milliseconds