Lines Matching refs:ufd
367 void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument
377 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range()
381 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) in continue_range() argument
392 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range()
402 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range()
408 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument
540 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
560 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
566 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
577 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument
584 if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake)) in wake_range()
589 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp) in __copy_page() argument
603 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
608 wake_range(ufd, uffdio_copy.dst, page_size); in __copy_page()
614 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page()
621 int copy_page(int ufd, unsigned long offset, bool wp) in copy_page() argument
623 return __copy_page(ufd, offset, false, wp); in copy_page()