From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Linux Doc Mailing List <linux-doc@vger.kernel.org>,
Jonathan Corbet <corbet@lwn.net>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-kernel@vger.kernel.org,
Randy Dunlap <rdunlap@infradead.org>
Subject: [PATCH v3 0/2] kernel-doc: add support for documenting vars
Date: Sun, 16 Nov 2025 12:23:29 +0100 [thread overview]
Message-ID: <cover.1763291890.git.mchehab+huawei@kernel.org> (raw)
Hi Jon,
As suggested and discussed with Randy, this small series add support
for documenting variables using kernel-doc.
The first patch adds support for it.
The second one documents two variables from media.
While two documented variables are part of kAPI, I'm documenting them
mostly aiming to test the new feature, as those are meant to be used for
debugging messages, so we could live without having them documented.
I'm pretty sure we'll likely need to improve the parser regexes to
catch everything. For instance, I had to add a logic on v3 due to the
choice I did for the vars, which are pointers.
Mauro Carvalho Chehab (2):
kernel-doc: add support for handling global variables
docs: media: v4l2-ioctl.h: document two global variables
include/media/v4l2-ioctl.h | 15 +++++++++
scripts/lib/kdoc/kdoc_output.py | 45 ++++++++++++++++++++++++++
scripts/lib/kdoc/kdoc_parser.py | 56 ++++++++++++++++++++++++++++++++-
3 files changed, 115 insertions(+), 1 deletion(-)
--
2.51.1
next reply other threads:[~2025-11-16 11:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-16 11:23 Mauro Carvalho Chehab [this message]
2025-11-16 11:23 ` [PATCH v3 1/2] kernel-doc: add support for handling global variables Mauro Carvalho Chehab
2025-11-18 6:59 ` Randy Dunlap
2025-11-18 9:02 ` Mauro Carvalho Chehab
2025-11-18 23:50 ` Randy Dunlap
2025-11-19 5:18 ` Randy Dunlap
2025-11-19 7:30 ` Mauro Carvalho Chehab
2025-11-16 11:23 ` [PATCH v3 2/2] docs: media: v4l2-ioctl.h: document two " Mauro Carvalho Chehab
2025-11-18 6:52 ` Randy Dunlap
2025-11-21 17:50 ` [PATCH v3 0/2] kernel-doc: add support for documenting vars Jonathan Corbet
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=cover.1763291890.git.mchehab+huawei@kernel.org \
--to=mchehab+huawei@kernel.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rdunlap@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 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).