Hi Nadav, On 3/7/22 19:48, Nadav Amit wrote: > From: Nadav Amit <namit@xxxxxxxxxx> > > Describe the new UFFD_FEATURE_EXACT_ADDRESS API feature. > > Signed-off-by: Nadav Amit <namit@xxxxxxxxxx> > --- LGTM. Please ping when it's added to Linus's tree, and add a comment with the commit message that added it. Thanks, Alex > man2/ioctl_userfaultfd.2 | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 > index 504f61d4b..94480158e 100644 > --- a/man2/ioctl_userfaultfd.2 > +++ b/man2/ioctl_userfaultfd.2 > @@ -214,6 +214,14 @@ memory accesses to the regions registered with userfaultfd. > If this feature bit is set, > .I uffd_msg.pagefault.feat.ptid > will be set to the faulted thread ID for each page-fault message. > +.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 -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/