Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
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()
/kernel/linux/linux-5.10/drivers/dma-buf/
Dudmabuf.c168 struct file *memfd = NULL; in udmabuf_create() local
204 memfd = fget(list[i].memfd); in udmabuf_create()
205 if (!memfd) in udmabuf_create()
207 if (!shmem_mapping(file_inode(memfd)->i_mapping)) in udmabuf_create()
209 seals = memfd_fcntl(memfd, F_GET_SEALS, 0); in udmabuf_create()
220 file_inode(memfd)->i_mapping, pgoff + pgidx); in udmabuf_create()
227 fput(memfd); in udmabuf_create()
228 memfd = NULL; in udmabuf_create()
251 if (memfd) in udmabuf_create()
252 fput(memfd); in udmabuf_create()
[all …]
DKconfig39 A driver to let userspace turn memfd regions into dma-bufs.
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dudmabuf.h25 __u32 memfd; member
31 __u32 memfd; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dudmabuf.h11 __u32 memfd; member
18 __u32 memfd; member
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/
D.gitignore5 memfd-test-file
Drun_fuse_test.sh13 ./fuse_test ./mnt/memfd $@
/kernel/linux/build/test/syzkaller/qos_auth/
Dlatency_nice.txt44 include <uapi/linux/memfd.h>
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3962 int status, listener, memfd, fd; in TEST() local
3971 memfd = memfd_create("test", 0); in TEST()
3972 ASSERT_GE(memfd, 0); in TEST()
3995 addfd.srcfd = memfd; in TEST()
4036 EXPECT_EQ(filecmp(getpid(), pid, memfd, fd), 0); in TEST()
4049 EXPECT_EQ(filecmp(getpid(), pid, memfd, fd), 0); in TEST()
4082 close(memfd); in TEST()
4089 int status, listener, memfd; in TEST() local
4098 memfd = memfd_create("test", 0); in TEST()
4099 ASSERT_GE(memfd, 0); in TEST()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/
DMakefile33 TARGETS += memfd
/kernel/linux/linux-5.10/mm/
DMakefile123 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
/kernel/linux/linux-5.10/Documentation/arm64/
Dmemory-tagging-extension.rst47 RAM-based file mappings (``tmpfs``, ``memfd``). Passing it to other