Home
last modified time | relevance | path

Searched refs:uffdio_move (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/testing/selftests/mm/
Duffd-common.c639 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()
[all …]
/linux-6.12.1/fs/
Duserfaultfd.c1867 struct uffdio_move uffdio_move; in userfaultfd_move() local
1868 struct uffdio_move __user *user_uffdio_move; in userfaultfd_move()
1872 user_uffdio_move = (struct uffdio_move __user *) arg; in userfaultfd_move()
1877 if (copy_from_user(&uffdio_move, user_uffdio_move, in userfaultfd_move()
1879 sizeof(uffdio_move)-sizeof(__s64))) in userfaultfd_move()
1886 ret = validate_range(mm, uffdio_move.dst, uffdio_move.len); in userfaultfd_move()
1890 ret = validate_range(mm, uffdio_move.src, uffdio_move.len); in userfaultfd_move()
1894 if (uffdio_move.mode & ~(UFFDIO_MOVE_MODE_ALLOW_SRC_HOLES| in userfaultfd_move()
1899 ret = move_pages(ctx, uffdio_move.dst, uffdio_move.src, in userfaultfd_move()
1900 uffdio_move.len, uffdio_move.mode); in userfaultfd_move()
[all …]
/linux-6.12.1/tools/include/uapi/linux/
Duserfaultfd.h99 struct uffdio_move)
359 struct uffdio_move { struct
/linux-6.12.1/include/uapi/linux/
Duserfaultfd.h99 struct uffdio_move)
359 struct uffdio_move { struct