Skip to contentSkip to conversation

dma-buf: Correct the documentation of name and exp_name symbols

PATCH In review Ramesh Errabolu 2 participants 2 messages Nov 21, 2023 – Nov 22, 2023 DMA buffer sharing framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf: Correct the documentation of name and exp_name symbols

Fix the documentation of struct dma_buf members name and exp_name as to how these members are to be used and accessed.

---
 include/linux/dma-buf.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
include/linux/dma-buf.h +7 -4
index 3f31baa3293f..8ff4add71f88 100644
@@ -343,16 +343,19 @@ struct dma_buf {
 	/**
 	 * @exp_name:
 	 *
-	 * Name of the exporter; useful for debugging. See the
-	 * DMA_BUF_SET_NAME IOCTL.
+	 * Name of the exporter; useful for debugging. Must not be NULL
 	 */
 	const char *exp_name;
 
 	/**
 	 * @name:
 	 *
-	 * Userspace-provided name; useful for accounting and debugging,
-	 * protected by dma_resv_lock() on @resv and @name_lock for read access.
+	 * Userspace-provided name. Default value is NULL. If not NULL,
+	 * length cannot be longer than DMA_BUF_NAME_LEN, including NIL
+	 * char. Useful for accounting and debugging. Read/Write accesses
+	 * are protected by @name_lock
+	 *
+	 * See the IOCTLs DMA_BUF_SET_NAME or DMA_BUF_SET_NAME_A/B
 	 */
 	const char *name;
 
Signature · 1 line
2.34.1
#1 lore raw

Am 21.11.23 um 19:11 schrieb Ramesh Errabolu:

Quoted 4 lines

Fix the documentation of struct dma_buf members name and exp_name as to how these members are to be used and accessed.

Looks good to me, but you need to send this to dri-devel and a bunch of other lists as well.

Try to use the get_maintainer script to find all recipients.

Christian.

Quoted 32 lines
---
  include/linux/dma-buf.h | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)
include/linux/dma-buf.h +7 -4
index 3f31baa3293f..8ff4add71f88 100644
@@ -343,16 +343,19 @@ struct dma_buf {
  	/**
  	 * @exp_name:
  	 *
-	 * Name of the exporter; useful for debugging. See the
-	 * DMA_BUF_SET_NAME IOCTL.
+	 * Name of the exporter; useful for debugging. Must not be NULL
  	 */
  	const char *exp_name;
 
  	/**
  	 * @name:
  	 *
-	 * Userspace-provided name; useful for accounting and debugging,
-	 * protected by dma_resv_lock() on @resv and @name_lock for read access.
+	 * Userspace-provided name. Default value is NULL. If not NULL,
+	 * length cannot be longer than DMA_BUF_NAME_LEN, including NIL
+	 * char. Useful for accounting and debugging. Read/Write accesses
+	 * are protected by @name_lock
+	 *
+	 * See the IOCTLs DMA_BUF_SET_NAME or DMA_BUF_SET_NAME_A/B
  	 */
  	const char *name;