public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: Peter Xu <peterx@redhat.com>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>,
	linux-man@vger.kernel.org,
	Axel Rasmussen <axelrasmussen@google.com>
Subject: Re: [PATCH v2 0/2] userfaultfd.2: Update to latest
Date: Wed, 15 Jun 2022 15:39:11 +0200	[thread overview]
Message-ID: <482f97e7-b0c9-cddc-be2d-3f0f7ccedf0e@gmail.com> (raw)
In-Reply-To: <Yp9gyFRKJoiQmiyU@xz-m1.local>


[-- Attachment #1.1: Type: text/plain, Size: 4736 bytes --]

Hi Peter!

On 6/7/22 16:29, Peter Xu wrote:
>> "registered" is not acting as an adjective, but as a verb.
> 
> I wanted to use it as an adjective, but after you questioned this one I'm
> not sure any more on my English school knowledges. :)
> 
>> Maybe Peter was confused by that; I didn't consider that option.  I'm
>> actually surprised that you were, Branden, but I guess it was just a
>> neuron going crazy, as mine with \c the other day :p
>>
>>
>>>
>>>> It's always challenging for me to grasp how you prefer the newlines
>>>> are made, but anyway below changes looks good to me.
>>
>> Sorry, Peter.  I'll take that into account, and try to help as much as I
>> can.
> 
> You're greatly helpful start from the beginning, and I just hope you can
> still bare with me. :-)

Sure! :)


> 
>> Apart from what Branden has already added to this thread, the
>> following man-pages commit has some more details, quoted from B. W.
>> Kernighan, and may help you understand what I want:
>>
>> <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man7/man-pages.7?h=alx/main&id=6ff6f43d68164f99a8c3fb66f4525d145571310c>
>>
>> I have a long-standing discussion with Branden regarding how much should I
>> push for semantic newlines.  The origin of using semantic newlines is only
>> to simplify diffs (and it does that very well), but for some reason, my
>> brain reads the text better too when organized that way, as opposed to
>> normal prose-like text flow.  There I seem to disagree with Branden, who
>> prefers to read my emails as if they were a book.  Maybe I need semantic
>> newlines to understand the text better, because there are a lot of technical
>> terms that I don't know, and having less load on my brain (because I don't
>> need to calculate phrase boundaries) makes it easier; it's especially useful
>> when text is under development, where it may have mistakes that make it even
>> more difficult to read.
>>
>> But, just do what you can.  I'll try to do the rest, and ask you if I don't
>> understand something.
> 
> Yes IMHO that'll be the best way to go with the rest of the community too,
> because afaict not all community developers will be able to quickly get
> used to the rules on man page repository - you're working with a bunch of
> people using in most cases C compilers which has a much looser syntax!
> 
> It'll be great if you could help tune the bits after the content being
> contributed by others as long as the modified version has the correct
> meanings.  Not sure whether it'll have scaling problem but hopefully the
> man pages won't be updated drastically so it won't overload you so easily.
 >
 > Thanks again for all the helps,
 >

Yes, if I just fix all of them, programmers never learn how to write 
proper manual pages, and I'll have to fix them forever (and sometimes, 
when I recevie huge patches, such as new pages, it doesn't scale very 
well).  But I can't put too much pressure either.  It's difficult, but I 
try to adapt to each of you.


In this case, I applied both of your patches, and on top of them, I 
applied the following one.

Cheers!

Alex

---

     userfaultfd.2: Minor tweaks to Peter's patches

     Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
     Cc: Peter Xu <peterx@redhat.com>

diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2
index 9b5ec0358..0c0a4f687 100644
--- a/man2/userfaultfd.2
+++ b/man2/userfaultfd.2
@@ -62,11 +62,11 @@ flag in
  .BR open (2).
  .TP
  .B UFFD_USER_MODE_ONLY
-This is an userfaultfd specific flag that was introduced since Linux 5.11.
-When set, the userfaultfd object will only be able to handle page faults
-originated from the userspace on the registered regions.
-When a kernel originated fault was triggered on the registered range with
-this userfaultfd, a
+This is an userfaultfd-specific flag that was introduced in Linux 5.11.
+When set, the userfaultfd object will only be able to handle
+page faults originated from the user space on the registered regions.
+When a kernel-originated fault was triggered
+on the registered range with this userfaultfd, a
  .B SIGBUS
  signal will be delivered.
  .PP
@@ -277,8 +277,9 @@ ioctl against the feature bit
  .B UFFD_FEATURE_PAGEFAULT_FLAG_WP
  before using this feature.
  .PP
-Since Linux 5.19, the write-protection mode was also supported on shmem 
and hugetlbfs
-memory types.
+Since Linux 5.19,
+the write-protection mode was also supported on
+shmem and hugetlbfs memory types.
  It can be detected with the feature bit
  .BR UFFD_FEATURE_WP_HUGETLBFS_SHMEM .
  .PP


-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-06-15 13:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 17:37 [PATCH v2 0/2] userfaultfd.2: Update to latest Peter Xu
2022-06-03 17:37 ` [PATCH v2 1/2] userfaultfd.2: Add section for UFFD_USER_MODE_ONLY Peter Xu
2022-06-03 17:37 ` [PATCH v2 2/2] userfaultfd.2: Update on write-protection support Peter Xu
2022-06-06 18:52 ` [PATCH v2 0/2] userfaultfd.2: Update to latest Alejandro Colomar
2022-06-06 19:40   ` Peter Xu
2022-06-06 21:33     ` G. Branden Robinson
2022-06-07  9:08       ` Alejandro Colomar
2022-06-07 14:29         ` Peter Xu
2022-06-15 13:39           ` Alejandro Colomar [this message]
2022-06-15 15:00             ` Peter Xu
2022-06-07  9:17       ` Jakub Wilk
2022-06-07  9:23         ` Alejandro Colomar
2022-06-06 22:26     ` Axel Rasmussen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=482f97e7-b0c9-cddc-be2d-3f0f7ccedf0e@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=axelrasmussen@google.com \
    --cc=g.branden.robinson@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=peterx@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox