Lines Matching refs:ufd
366 void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument
376 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range()
380 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) in continue_range() argument
391 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range()
401 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range()
407 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument
537 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
557 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
563 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
574 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument
581 if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake)) in wake_range()
586 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp) in __copy_page() argument
600 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
605 wake_range(ufd, uffdio_copy.dst, page_size); in __copy_page()
611 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page()
618 int copy_page(int ufd, unsigned long offset, bool wp) in copy_page() argument
620 return __copy_page(ufd, offset, false, wp); in copy_page()