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