public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Kerr <jk@codeconstruct.com.au>
To: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>, linux-man@vger.kernel.org
Subject: Re: [PATCH] mctp.7: Add man page for Linux MCTP support
Date: Mon, 18 Oct 2021 13:05:25 +0800	[thread overview]
Message-ID: <e6a15bfbb2337b78c9e1305956e71cebd7b4328f.camel@codeconstruct.com.au> (raw)
In-Reply-To: <97962dba-3787-2cd2-bc96-63b009ce9af8@gmail.com>

Hi Alex,

> Thanks for the manual page!

And thanks for the review! In general, I've updated to suit your
comments, just a couple of queries inline.

> > +.SH SYNOPSIS
> > +.nf
> > +.B #include <sys/socket.h>
> > +.B #include <linux/mctp.h>
> > +.PP
> > +.B mctp_socket = socket(AF_MCTP, SOCK_DGRAM, 0);
> 
> mctp_socket is a variable name.  See socket.7 for an example.
> It should be in italics.

This was based on udp.7; want me to send a patch for that too?

> > +Packets between a local and remote endpoint are identified by the
> > source
> > +and destination EIDs, plus a three-bit tag value.
> > +.PP
> > +Addressing data is passed in socket system calls through
> > +.B struct sockaddr\_mctp
> 
> That escape is unnecessary.  Did you see it in another page perhaps?

I thought I'd seen some odd line-breaks at the underscore, but can't
replicate that now. Will remove.

> > +typedef uint8_t        mctp_eid_t;
> > +
> > +struct mctp_addr {
> > +    mctp_eid_t         s_addr;
> > +};
> > +
> > +struct sockaddr_mctp {
> > +    unsigned short int smctp_family;  /* = AF_MCTP */
> 
> We only use 'int' in 'unsigned int', as the kernel does (or attempts
> to do).  checkpatch.pl warns about 'unsigned short int', IIRC.

No, there are no warnings from checkpatch there; that's just copied from
the current kernel header.

However, I have just sent a separate patch to change that to
__kernel_sa_family_t. Should I use that here (keeping this an exact
match of the kernel header), or stick to the more familiar unsigned
short?

Cheers,


Jeremy


  reply	other threads:[~2021-10-18  5:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14  7:05 [PATCH] mctp.7: Add man page for Linux MCTP support Jeremy Kerr
2021-10-17 18:49 ` Alejandro Colomar (man-pages)
2021-10-18  5:05   ` Jeremy Kerr [this message]
2021-10-18  5:57     ` G. Branden Robinson
2021-10-18  7:16       ` Alejandro Colomar (man-pages)
2021-10-18  7:53         ` Alejandro Colomar (man-pages)
2021-11-22  1:09           ` Suppressing hyphenation (was: [PATCH] mctp.7: Add man page for Linux MCTP support) G. Branden Robinson
2021-10-18  6:59     ` [PATCH] mctp.7: Add man page for Linux MCTP support Alejandro Colomar (man-pages)
2021-10-18  7:46   ` Alejandro Colomar (man-pages)

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=e6a15bfbb2337b78c9e1305956e71cebd7b4328f.camel@codeconstruct.com.au \
    --to=jk@codeconstruct.com.au \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.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