* [PATCH -next] block: Add parameter descriptions to kernel-doc
@ 2024-02-02 7:52 Yang Li
0 siblings, 0 replies; only message in thread
From: Yang Li @ 2024-02-02 7:52 UTC (permalink / raw)
To: axboe; +Cc: linux-block, linux-kernel, Yang Li
This patch enhances the kernel documentation for the some
functions by providing detailed descriptions of its parameters.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
block/partitions/aix.c | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/block/partitions/aix.c b/block/partitions/aix.c
index 85f4b967565e..0169f6d8fe95 100644
--- a/block/partitions/aix.c
+++ b/block/partitions/aix.c
@@ -68,10 +68,11 @@ struct pvd {
/**
* read_lba(): Read bytes from disk, starting at given LBA
- * @state
- * @lba
- * @buffer
- * @count
+ * @state: pointer to a parsed_partitions structure which holds the state
+ * including details about the partitions on the disk.
+ * @lba: logical block address from where the read operation should start on the disk.
+ * @buffer: pointer to a buffer where the data read from the disk will be stored.
+ * @count: number of bytes to be read from the disk.
*
* Description: Reads @count bytes from @state->disk into @buffer.
* Returns number of bytes read on success, 0 on error.
@@ -103,8 +104,9 @@ static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer,
/**
* alloc_pvd(): reads physical volume descriptor
- * @state
- * @lba
+ * @state: pointer to a parsed_partitions structure which holds the state
+ * including details about the partitions on the disk.
+ * @lba: logical block address where the physical volume descriptor is located.
*
* Description: Returns pvd on success, NULL on error.
* Allocates space for pvd and fill it with disk blocks at @lba
@@ -128,8 +130,9 @@ static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba)
/**
* alloc_lvn(): reads logical volume names
- * @state
- * @lba
+ * @state: pointer to a parsed_partitions structure which holds the state
+ * including details about the partitions on the disk.
+ * @lba: logical block address where the physical volume descriptor is located.
*
* Description: Returns lvn on success, NULL on error.
* Allocates space for lvn and fill it with disk blocks at @lba
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-02 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 7:52 [PATCH -next] block: Add parameter descriptions to kernel-doc Yang Li
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®