linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Cc: Linux Doc Mailing List <linux-doc@vger.kernel.org>,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH RFC 0/2] Move media uAPI and kAPI docs to a better place
Date: Fri, 6 Mar 2020 15:48:53 -0700	[thread overview]
Message-ID: <20200306154853.7d5c3165@lwn.net> (raw)
In-Reply-To: <cover.1583316037.git.mchehab+huawei@kernel.org>

On Wed,  4 Mar 2020 11:51:01 +0100
Mauro Carvalho Chehab <mchehab+huawei@kernel.org> wrote:

> This is something that you always wanted: move uAPI and kAPI to
> separate books.

Oh goodie...Christmas is coming early this year...:)

> This RFC series start doing it for the media docs.
> 
> For now, this is just a RFC, being only an initial step for it. I'm sending
> it on this early stage just to rise some discussions.
> 
> This changeset basically moves:
> 
>   - the media kAPI files to be under driver-api/media;
>   - the media uAPI files to be under userspace-api/media.
> 
> This version keeps including both inside Documentation/media/index.rst.

The moves make sense to me.  The including part I'm not so sure about.  It
seems kind of strange to have the structure of the rendered docs be
different from that of the plain-text docs; it suggests that one of the two
placements is wrong.

My own choice (as you suggest later) would be to keep the structure the
same in both domains, and to use cross-references to create paths where
they are needed.

> The driver-specific information is messy, as each file there may contain
> either one or more of the following items:
> 
> 	- driver-development information;
> 	- on a few drivers, drivers-specific uAPI.
> 	- modprobe parameters;
> 	- List of devices supported by each driver;
> 
> The last two are probably contents for the admin-guide, but not sure
> where to place driver-specific development information. Does it
> belong to "driver-api" book too?
> 
> I guess that driver-specific uAPI could fit at the userspace-api, but I
> don't want them to be at the same place as the core media API stuff.
> 
> Suggestions?

That is a good question.  I've wondered for a bit if we need a separate
hardware manual for documentation specific to a given device.  In cases
like this, it could perhaps consist mostly of cross-references to the
relevant documentation in the other manuals.  It's hard to argue, for
example, that "modprobe parameters" should be somewhere other than with all
the other command-line parameters...

Thanks,

jon

  parent reply	other threads:[~2020-03-06 22:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-04 10:51 [PATCH RFC 0/2] Move media uAPI and kAPI docs to a better place Mauro Carvalho Chehab
2020-03-04 10:51 ` [PATCH RFC 2/2] docs: media kAPI docs: move them to driver-api Mauro Carvalho Chehab
2020-03-06 22:48 ` Jonathan Corbet [this message]
2020-03-07  9:20   ` [PATCH RFC 0/2] Move media uAPI and kAPI docs to a better place Mauro Carvalho Chehab

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=20200306154853.7d5c3165@lwn.net \
    --to=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab+huawei@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).