Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/drivers/dma-buf/
A Dudmabuf.c29 int devfd, memfd, buf, ret; in main() local
40 memfd = memfd_create("udmabuf-test", MFD_ALLOW_SEALING); in main()
41 if (memfd < 0) { in main()
46 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main()
54 ret = ftruncate(memfd, size); in main()
63 create.memfd = memfd; in main()
73 create.memfd = memfd; in main()
83 create.memfd = 0; /* stdin */ in main()
93 create.memfd = memfd; in main()
104 close(memfd); in main()
/linux-6.3-rc2/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-6.3-rc2/drivers/dma-buf/
A Dudmabuf.c205 struct file *memfd = NULL; in udmabuf_create() local
244 memfd = fget(list[i].memfd); in udmabuf_create()
245 if (!memfd) in udmabuf_create()
247 mapping = memfd->f_mapping; in udmabuf_create()
259 if (is_file_hugepages(memfd)) { in udmabuf_create()
260 hpstate = hstate_file(memfd); in udmabuf_create()
295 fput(memfd); in udmabuf_create()
296 memfd = NULL; in udmabuf_create()
323 if (memfd) in udmabuf_create()
324 fput(memfd); in udmabuf_create()
[all …]
A DKconfig39 A driver to let userspace turn memfd regions into dma-bufs.
/linux-6.3-rc2/include/uapi/linux/
A Dudmabuf.h11 __u32 memfd; member
18 __u32 memfd; member
/linux-6.3-rc2/tools/testing/selftests/memfd/
A D.gitignore5 memfd-test-file
A Drun_fuse_test.sh13 ./fuse_test ./mnt/memfd $@
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c4034 int status, listener, memfd, fd, nextfd; in TEST() local
4044 memfd = memfd_create("test", 0); in TEST()
4045 ASSERT_GE(memfd, 0); in TEST()
4046 nextfd = memfd + 1; in TEST()
4076 addfd.srcfd = memfd; in TEST()
4185 close(memfd); in TEST()
4192 int status, listener, memfd; in TEST() local
4201 memfd = memfd_create("test", 0); in TEST()
4202 ASSERT_GE(memfd, 0); in TEST()
4225 addfd.srcfd = memfd; in TEST()
[all …]
/linux-6.3-rc2/mm/
A DMakefile133 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
/linux-6.3-rc2/tools/testing/selftests/
A DMakefile42 TARGETS += memfd
/linux-6.3-rc2/Documentation/arm64/
A Dmemory-tagging-extension.rst47 RAM-based file mappings (``tmpfs``, ``memfd``). Passing it to other
/linux-6.3-rc2/Documentation/filesystems/
A Dproc.rst1051 as mlocked pages, ramfs backing pages, secret memfd pages etc.
/linux-6.3-rc2/Documentation/virt/kvm/
A Dapi.rst7515 ``MAP_ANONYMOUS`` or with a RAM-based file mapping (``tmpfs``, ``memfd``),

Completed in 54 milliseconds