From: Brian Norris <briannorris@chromium.org>
To: Alejandro Colomar <alx@kernel.org>
Cc: linux-man@vger.kernel.org,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Patrick Bellasi <patrick.bellasi@arm.com>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] sched_setattr.2: Document sched_util_{min,max}
Date: Wed, 12 Jun 2024 13:10:29 -0700 [thread overview]
Message-ID: <ZmoAtQrMEaWKauA6@google.com> (raw)
In-Reply-To: <erkmfrnua26323vx26kmzv7ynrt2vpub3pmrotr4wmvlujpfyi@42xwmyjyjt22>
Hi Alejandro,
Thanks for the look! A few comments and questions.
On Sun, May 26, 2024 at 12:36:58PM +0200, Alejandro Colomar wrote:
> Hi Brian,
>
> On Fri, May 24, 2024 at 12:08:28PM GMT, Brian Norris wrote:
> > --- a/man/man2/sched_setattr.2
> > +++ b/man/man2/sched_setattr.2
> > u64 sched_runtime;
> > u64 sched_deadline;
> > u64 sched_period;
> > +
>
> Please don't use blank lines in the source code. They trigger a
> warning.
Oops, I probably should have gotten further into the documentation to
figure out how to run the linters. Indeed I see the warning now, and
I'll make sure I don't add more lint in the next version.
> > +These flags indicate that the
> > +.I
> > +sched_util_min
> > +or
> > +.I
> > +sched_util_max
> > +fields, respectively, are present, representing the expected minimum and
> > +maximum utilization of the thread.
>
> Please use semantic newlines.
>
> $ MANWIDTH=72 man man-pages | sed -n '/Use semantic newlines/,/^$/p'
I'll give that man page a better read for my next submission. Thanks for
the callout.
> Use semantic newlines
> In the source of a manual page, new sentences should be started on
> new lines, long sentences should be split into lines at clause
> breaks (commas, semicolons, colons, and so on), and long clauses
> should be split at phrase boundaries. This convention, sometimes
> known as "semantic newlines", makes it easier to see the effect of
> patches, which often operate at the level of individual sentences,
> clauses, or phrases.
I'll do my best to interpret what the best "phrase boundaries" are. I
don't think the writing always has enough punctuation breaks to nicely
break into 80-char pieces.
> > @@ -353,7 +398,6 @@ .SH ERRORS
> > .I attr.sched_flags
> > contains a flag other than
> > .BR SCHED_FLAG_RESET_ON_FORK ;
> > -or
>
> This change seems to be unrelated to this patch, right?
I suppose it's unrelated. At first I was going to add new EINVAL
descriptions to this paragraph, and I found that it had an odd
(incorrect?) use of too many "or". But then I simply broke out an
additional EINVAL section, which makes this change less related.
Side note: on second thought, it probably makes sense to split this
paragraph into multiple anyway, since the pattern
"condition A; or condition B; or condition C [...]"
gets a bit hard to read with sufficient number of different conditions.
If it's preferred (and based on your comment, it probably is?), I'll
make corrections in separate patches.
> > .I attr.sched_priority
> > is invalid; or
> > .I attr.sched_policy
Regards,
Brian
next prev parent reply other threads:[~2024-06-12 20:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 19:08 [PATCH] sched_setattr.2: Document sched_util_{min,max} Brian Norris
2024-05-26 10:36 ` Alejandro Colomar
2024-06-12 20:10 ` Brian Norris [this message]
2024-06-12 20:25 ` Alejandro Colomar
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=ZmoAtQrMEaWKauA6@google.com \
--to=briannorris@chromium.org \
--cc=alx@kernel.org \
--cc=dietmar.eggemann@arm.com \
--cc=linux-man@vger.kernel.org \
--cc=patrick.bellasi@arm.com \
--cc=peterz@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.