[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKCAbMidJ=UhsMumDcwiqvkGEG5SROPnv=OA379w_=0dZk5W5g@mail.gmail.com>
Date: Tue, 4 May 2021 16:33:24 -0400
From: Zack Weinberg <zackw@...ix.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: "Alejandro Colomar (man-pages)" <alx.manpages@...il.com>,
Greg KH <gregkh@...uxfoundation.org>,
Alexei Starovoitov <alexei.starovoitov@...il.com>,
"Michael Kerrisk (man-pages)" <mtk.manpages@...il.com>,
linux-man <linux-man@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
glibc <libc-alpha@...rceware.org>, GCC <gcc-patches@....gnu.org>,
bpf <bpf@...r.kernel.org>,
Joseph Myers <joseph@...esourcery.com>,
David Laight <David.Laight@...lab.com>,
David Miller <davem@...emloft.net>
Subject: Re: [RFC v2] bpf.2: Use standard types and attributes
On Tue, May 4, 2021 at 4:06 PM Daniel Borkmann <daniel@...earbox.net> wrote:
> > I'm trying to clarify the manual pages as much as possible, by using standard conventions and similar structure all around the pages. Not everyone understands kernel conventions. Basically, Zack said very much what I had in mind with this patch.
>
> But then are you also converting, for example, __{le,be}{16,32,64} to plain
> uint{16,32,64}_t in the man pages and thus removing contextual information
> (or inventing new equivalent types)?
>
> What about other types exposed to user space like __sum16, __wsum, or __poll_t
> when they are part of a man page, etc?
Fields that are specifically in some endianness that isn't
(necessarily) the CPU's _should_ be documented as such in the manpage,
but I dunno if __{le,be}{16,32,64} as a type name is the ideal way to
do it. There is no off-the-shelf notation for this as far as I know.
I do not know what __sum16, __wsum, and __poll_t are used for, but I
want to remind everyone again that the kernel's concerns are not
necessarily user space's concerns and the information that should
appear in the manpages is the information that is most relevant to
user space programmers.
zw
Powered by blists - more mailing lists