Lines Matching refs:memfd
1276 int memfd = syscall(SYZ_memfd_create, "syz_read_part_table", 0);
1277 if (memfd == -1) {
1281 if (ftruncate(memfd, size)) {
1286 if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) {
1296 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1303 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1337 close(memfd);
1367 int memfd = syscall(SYZ_memfd_create, "syz_mount_image", 0);
1368 if (memfd == -1) {
1372 if (ftruncate(memfd, size)) {
1377 if (pwrite(memfd, segs[i].data, segs[i].size, segs[i].offset) < 0) {
1387 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1394 if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
1426 close(memfd);