Lines Matching refs:uffdio_move
639 struct uffdio_move uffdio_move; in move_page() local
643 uffdio_move.dst = (unsigned long) area_dst + offset; in move_page()
644 uffdio_move.src = (unsigned long) area_src + offset; in move_page()
645 uffdio_move.len = len; in move_page()
646 uffdio_move.mode = UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES; in move_page()
647 uffdio_move.move = 0; in move_page()
648 if (ioctl(ufd, UFFDIO_MOVE, &uffdio_move)) { in move_page()
650 if (uffdio_move.move != -EEXIST) in move_page()
652 (int64_t)uffdio_move.move); in move_page()
653 wake_range(ufd, uffdio_move.dst, len); in move_page()
654 } else if (uffdio_move.move != len) { in move_page()
655 err("UFFDIO_MOVE error: %"PRId64, (int64_t)uffdio_move.move); in move_page()