From: TAKANO Mitsuhiro <takano32@gmail.com>
To: Thierry Reding <thierry.reding@kernel.org>,
Mikko Perttunen <mperttunen@nvidia.com>
Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org,
TAKANO Mitsuhiro <takano32@gmail.com>
Subject: [PATCH] gpu: host1x: Document the get, put, mmap and munmap operations
Date: Wed, 25 Nov 2026 17:20:22 +0000 [thread overview]
Message-ID: <20261125172022.2344949-1-takano32@gmail.com> (raw)
struct host1x_bo_ops documents its pin and unpin operations but not the
four that take a reference on a bo and map it into the kernel address
space, so kernel-doc reports each of them as undescribed:
include/linux/host1x.h:159 struct member 'get' not described in 'host1x_bo_ops'
include/linux/host1x.h:159 struct member 'put' not described in 'host1x_bo_ops'
include/linux/host1x.h:159 struct member 'mmap' not described in 'host1x_bo_ops'
include/linux/host1x.h:159 struct member 'munmap' not described in 'host1x_bo_ops'
Describe them from what the implementations do: get takes a reference and
returns the bo, put drops the reference, mmap maps the bo into the kernel
address space and returns the address, munmap unmaps the address that mmap
returned.
kernel-doc on the file prints eight warnings before the change and none
after it.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran
kernel-doc on the file with and without the change.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
include/linux/host1x.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/host1x.h b/include/linux/host1x.h
index e7ba601b2afb..411a1c84eb61 100644
--- a/include/linux/host1x.h
+++ b/include/linux/host1x.h
@@ -146,8 +146,12 @@ static inline struct host1x_bo_mapping *to_host1x_bo_mapping(struct kref *ref)
/**
* struct host1x_bo_ops - operations implemented by a host1x_bo provider
*
+ * @get: take a reference on the bo and return it.
+ * @put: drop a reference on the bo.
* @pin: create a DMA mapping. Implementation must not touch the bo's refcount.
* @unpin: destroy a DMA mapping. Implementation must not touch the bo's refcount.
+ * @mmap: map the bo into the kernel address space and return the address.
+ * @munmap: unmap the address @mmap returned.
*/
struct host1x_bo_ops {
struct host1x_bo *(*get)(struct host1x_bo *bo);
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
reply other threads:[~2026-11-25 17:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261125172022.2344949-1-takano32@gmail.com \
--to=takano32@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mperttunen@nvidia.com \
--cc=thierry.reding@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
all inboxes | Powered by JetHome®