/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_getfd_test.c | 36 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/ |
D | udmabuf.c | 168 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 …]
|
D | Kconfig | 39 A driver to let userspace turn memfd regions into dma-bufs.
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | udmabuf.h | 25 __u32 memfd; member 31 __u32 memfd; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | udmabuf.h | 11 __u32 memfd; member 18 __u32 memfd; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
D | .gitignore | 5 memfd-test-file
|
D | run_fuse_test.sh | 13 ./fuse_test ./mnt/memfd $@
|
/kernel/linux/build/test/syzkaller/qos_auth/ |
D | latency_nice.txt | 44 include <uapi/linux/memfd.h>
|
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3962 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/ |
D | Makefile | 33 TARGETS += memfd
|
/kernel/linux/linux-5.10/mm/ |
D | Makefile | 123 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
|
/kernel/linux/linux-5.10/Documentation/arm64/ |
D | memory-tagging-extension.rst | 47 RAM-based file mappings (``tmpfs``, ``memfd``). Passing it to other
|