Lines Matching refs:ufd
378 void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument
388 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range()
392 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) in continue_range() argument
403 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range()
413 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range()
419 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument
551 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
571 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
577 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
588 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument
595 if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake)) in wake_range()
600 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp) in __copy_page() argument
614 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
619 wake_range(ufd, uffdio_copy.dst, page_size); in __copy_page()
625 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page()
632 int copy_page(int ufd, unsigned long offset, bool wp) in copy_page() argument
634 return __copy_page(ufd, offset, false, wp); in copy_page()
637 int move_page(int ufd, unsigned long offset, unsigned long len) in move_page() argument
648 if (ioctl(ufd, UFFDIO_MOVE, &uffdio_move)) { in move_page()
653 wake_range(ufd, uffdio_move.dst, len); in move_page()