Lines Matching refs:memfd
688 int memfd = syscall(SYZ_memfd_create, "syz_read_part_table", 0); in syz_read_part_table() local
689 if (memfd == -1) { in syz_read_part_table()
693 if (ftruncate(memfd, size)) { in syz_read_part_table()
698 if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) { in syz_read_part_table()
708 if (ioctl(loopfd, LOOP_SET_FD, memfd)) { in syz_read_part_table()
715 if (ioctl(loopfd, LOOP_SET_FD, memfd)) { in syz_read_part_table()
750 close(memfd); in syz_read_part_table()
791 int memfd = syscall(SYZ_memfd_create, "syz_mount_image", 0); in syz_mount_image() local
792 if (memfd == -1) { in syz_mount_image()
796 if (ftruncate(memfd, size)) { in syz_mount_image()
801 if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) { in syz_mount_image()
811 if (ioctl(loopfd, LOOP_SET_FD, memfd)) { in syz_mount_image()
818 if (ioctl(loopfd, LOOP_SET_FD, memfd)) { in syz_mount_image()
855 close(memfd); in syz_mount_image()