summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2022-03-07 18:48:51 +0000
committerAlejandro Colomar <alx@kernel.org>2023-04-08 15:30:54 +0200
commit994a585e332aee6fc5553e092a92f4daf9d481fe (patch)
tree4ba89ab355246e38f1e633e29dd902aa34c2a7c4
parent4dd64901fcaf3679f5e51ac6ede38d38f7b578ba (diff)
ioctl_userfaultfd.2: Add UFFD_FEATURE_EXACT_ADDRESS
Describe the new UFFD_FEATURE_EXACT_ADDRESS API feature. Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/ioctl_userfaultfd.28
1 files changed, 8 insertions, 0 deletions
diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2
index 06e754cea..3f851f51b 100644
--- a/man2/ioctl_userfaultfd.2
+++ b/man2/ioctl_userfaultfd.2
@@ -207,6 +207,14 @@ in minor mode on hugetlbfs-backed memory areas.
If this feature bit is set,
the kernel supports registering userfaultfd ranges
in minor mode on shmem-backed memory areas.
+.TP
+.BR UFFD_FEATURE_EXACT_ADDRESS " (since Linux 5.18)"
+If this feature bit is set,
+.I uffd_msg.pagefault.address
+will be set to the exact page-fault address that was reported by the hardware,
+and will not mask the offset within the page.
+Note that old Linux versions might indicate the exact address as well,
+even though the feature bit is not set.
.PP
The returned
.I ioctls