/openbmc/linux/tools/testing/selftests/drivers/dma-buf/ |
H A D | udmabuf.c | 29 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()
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A 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()
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vugbm.c | 45 uint32_t memfd; member 64 buf->memfd = memfd_create("udmabuf-bo", MFD_ALLOW_SEALING); in udmabuf_alloc_bo() 65 if (buf->memfd < 0) { in udmabuf_alloc_bo() 69 ret = ftruncate(buf->memfd, udmabuf_get_size(buf)); in udmabuf_alloc_bo() 71 close(buf->memfd); in udmabuf_alloc_bo() 75 ret = fcntl(buf->memfd, F_ADD_SEALS, F_SEAL_SHRINK); in udmabuf_alloc_bo() 77 close(buf->memfd); in udmabuf_alloc_bo() 89 close(buf->memfd); in udmabuf_free_bo() 96 PROT_READ | PROT_WRITE, MAP_SHARED, buf->memfd, 0); in udmabuf_map_bo() 108 .memfd = buf->memfd, in udmabuf_get_fd()
|
H A D | vugbm.h | 43 int memfd; member
|
/openbmc/linux/drivers/dma-buf/ |
H A D | udmabuf.c | 204 struct file *memfd = NULL; in udmabuf_create() local 241 memfd = fget(list[i].memfd); in udmabuf_create() 242 if (!memfd) in udmabuf_create() 244 mapping = memfd->f_mapping; in udmabuf_create() 247 seals = memfd_fcntl(memfd, F_GET_SEALS, 0); in udmabuf_create() 264 fput(memfd); in udmabuf_create() 265 memfd = NULL; in udmabuf_create() 288 if (memfd) in udmabuf_create() 289 fput(memfd); in udmabuf_create() 307 list.memfd = create.memfd; in udmabuf_ioctl_create()
|
H A D | Kconfig | 39 A driver to let userspace turn memfd regions into dma-bufs.
|
/openbmc/linux/include/uapi/linux/ |
H A D | udmabuf.h | 11 __u32 memfd; member 18 __u32 memfd; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | udmabuf.h | 10 uint32_t memfd; member 17 uint32_t memfd; member
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | update_service.hpp | 844 const MemoryFileDescriptor& memfd, const std::string& applyTime, in startUpdate() argument 855 "StartUpdate", sdbusplus::message::unix_fd(memfd.fd), applyTime); in startUpdate() 859 task::Payload payload, const MemoryFileDescriptor& memfd, in getSwInfo() argument 895 startUpdate(asyncResp, std::move(payload), memfd, applyTime, in getSwInfo() 901 const MemoryFileDescriptor& memfd, const std::string& applyTime, in handleBMCUpdate() argument 920 startUpdate(asyncResp, std::move(payload), memfd, applyTime, in handleBMCUpdate() 929 MemoryFileDescriptor memfd("update-image"); in processUpdateRequest() local 930 if (memfd.fd == -1) in processUpdateRequest() 936 if (write(memfd.fd, body.data(), body.length()) != in processUpdateRequest() 943 if (!memfd.rewind()) in processUpdateRequest() [all …]
|
/openbmc/linux/tools/testing/selftests/memfd/ |
H A D | .gitignore | 5 memfd-test-file
|
H A D | run_fuse_test.sh | 13 ./fuse_test ./mnt/memfd $@
|
/openbmc/qemu/docs/system/ |
H A D | multi-process.rst | 55 memory-backend-memfd is required to facilitate this, as follows: 57 -object memory-backend-memfd,id=mem,size=2G
|
/openbmc/qemu/backends/ |
H A D | meson.build | 19 system_ss.add(files('hostmem-memfd.c'))
|
/openbmc/qemu/docs/system/devices/ |
H A D | vhost-user.rst | 101 achieved via the ``memory-backend-file``, ``memory-backend-memfd``, or 127 -object memory-backend-memfd,id=mem,size=4G,share=on \\
|
H A D | vhost-user-rng.rst | 31 use to communicate as well as share the guests memory over a memfd.
|
/openbmc/qemu/tests/qtest/ |
H A D | vhost-user-test.c | 225 int size, enum test_memfd memfd) in append_mem_opts() argument 227 if (memfd == TEST_MEMFD_AUTO) { in append_mem_opts() 228 memfd = qemu_memfd_check(MFD_ALLOW_SEALING) ? TEST_MEMFD_YES in append_mem_opts() 232 if (memfd == TEST_MEMFD_YES) { in append_mem_opts() 234 } else if (memfd == TEST_MEMFD_SHM) { in append_mem_opts()
|
/openbmc/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 4061 int status, listener, memfd, fd, nextfd; in TEST() local 4071 memfd = memfd_create("test", 0); in TEST() 4072 ASSERT_GE(memfd, 0); in TEST() 4073 nextfd = get_next_fd(memfd); in TEST() 4104 addfd.srcfd = memfd; in TEST() 4142 EXPECT_EQ(filecmp(getpid(), pid, memfd, fd), 0); in TEST() 4156 EXPECT_EQ(filecmp(getpid(), pid, memfd, fd), 0); in TEST() 4189 ASSERT_EQ(filecmp(getpid(), pid, memfd, fd), 0); in TEST() 4216 close(memfd); in TEST() 4223 int status, listener, memfd; in TEST() local [all …]
|
/openbmc/qemu/hw/display/ |
H A D | virtio-gpu-udmabuf.c | 54 list->list[i].memfd = rb->fd; in virtio_gpu_create_udmabuf()
|
/openbmc/qemu/scripts/ |
H A D | update-linux-headers.sh | 202 psci.h psp-sev.h userfaultfd.h memfd.h mman.h nvme_ioctl.h \
|
/openbmc/linux/mm/ |
H A D | Makefile | 133 obj-$(CONFIG_MEMFD_CREATE) += memfd.o
|
/openbmc/linux/tools/testing/selftests/ |
H A D | Makefile | 46 TARGETS += memfd
|
/openbmc/qemu/util/ |
H A D | meson.build | 21 util_ss.add(files('memfd.c'))
|
/openbmc/qemu/qapi/ |
H A D | qom.json | 608 # memory-backend-memfd, and memory-backend-shm) 705 # Properties for memory-backend-memfd objects. 1115 { 'name': 'memory-backend-memfd', 1190 'memory-backend-memfd': { 'type': 'MemoryBackendMemfdProperties',
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0002-add-fallback-parse_printf_format-implementation.patch | 30 'linux/memfd.h',
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0004-add-fallback-parse_printf_format-implementation.patch | 30 'linux/memfd.h',
|