Lines Matching refs:uffdio_copy
323 struct uffdio_copy uffdio_copy; in copy_page() local
328 uffdio_copy.dst = (unsigned long) area_dst + offset; in copy_page()
329 uffdio_copy.src = (unsigned long) area_src + offset; in copy_page()
330 uffdio_copy.len = page_size; in copy_page()
331 uffdio_copy.mode = 0; in copy_page()
332 uffdio_copy.copy = 0; in copy_page()
333 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in copy_page()
335 if (uffdio_copy.copy != -EEXIST) in copy_page()
337 uffdio_copy.copy), exit(1); in copy_page()
338 } else if (uffdio_copy.copy != page_size) { in copy_page()
340 uffdio_copy.copy), exit(1); in copy_page()