]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
UFFDIO_CONTINUE.2const: Tweak after split
authorAlejandro Colomar <alx@kernel.org>
Fri, 14 Jun 2024 16:53:04 +0000 (18:53 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 14 Jun 2024 16:55:32 +0000 (18:55 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2const/UFFDIO_CONTINUE.2const

index 32d8b826c9dff0220660085c500235302045c2cd..c0be912f556ee88d90a4e492574431c0f701a3b8 100644 (file)
@@ -18,31 +18,24 @@ Standard C library
 .BR "#include <linux/userfaultfd.h>" "  /* Definition of " UFFD* " constants */"
 .B #include <sys/ioctl.h>
 .P
-.BI "int ioctl(int " fd ", UFFDIO_CONTINUE, ...);"
+.BI "int ioctl(int " fd ", UFFDIO_CONTINUE, struct uffdio_continue *" argp );
+.P
+.B #include <linux/userfaultfd.h>
+.P
+.EX
+.B struct uffdio_continue {
+.B "    struct uffdio_range  range;"
+                     /* Range to install PTEs for and continue */
+.BR "    __u64   mode;" "    /* Flags controlling the behavior of continue */"
+.BR "    __s64   mapped;" "  /* Number of bytes mapped, or negated error */"
+.B };
+.EE
 .fi
 .SH DESCRIPTION
-(Since Linux 5.13.)
 Resolve a minor page fault
 by installing page table entries
 for existing pages in the page cache.
 .P
-The
-.I argp
-argument is a pointer to a
-.I uffdio_continue
-structure as shown below:
-.P
-.in +4n
-.EX
-struct uffdio_continue {
-    struct uffdio_range range;
-                   /* Range to install PTEs for and continue */
-    __u64 mode;    /* Flags controlling the behavior of continue */
-    __s64 mapped;  /* Number of bytes mapped, or negated error */
-};
-.EE
-.in
-.P
 The following value may be bitwise ORed in
 .I mode
 to change the behavior of the
@@ -126,6 +119,7 @@ operation.
 .SH STANDARDS
 Linux.
 .SH HISTORY
+Linux 5.13.
 .SH EXAMPLES
 See
 .BR userfaultfd (2).
@@ -134,5 +128,4 @@ See
 .BR ioctl_userfaultfd (2),
 .BR userfaultfd (2)
 .P
-.I Documentation/admin\-guide/mm/userfaultfd.rst
-in the Linux kernel source tree
+.I linux.git/\:Documentation/\:admin\-guide/\:mm/\:userfaultfd.rst