summaryrefslogtreecommitdiff
path: root/disk/part_dos.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <[email protected]>2026-02-12 21:44:58 +0100
committerHeinrich Schuchardt <[email protected]>2026-02-15 08:43:58 +0100
commitd25c5d657ec057e18eb32e2e8c354d5145e79cb0 (patch)
tree0bdc6641a52f45dc3c3919857911f4600f31a5c0 /disk/part_dos.c
parentaee9b7d0e0ba42caefc07c2c8d119b875dc58ba3 (diff)
disk: part_dos: Document part_get_info_extended() helper function
The function receives many parameters but these are not documented. Add a description for these to make it easier to follow what it does. Suggested-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'disk/part_dos.c')
-rw-r--r--disk/part_dos.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 60c3d677369..a69ad896210 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -196,7 +196,18 @@ static void print_partition_extended(struct blk_desc *desc,
return;
}
-/* Print a partition that is relative to its Extended partition table
+/**
+ * part_get_info_extended() - get partition info for a DOS partition
+ *
+ * @desc: Block device descriptor
+ * @ext_part_sector: Partition table sector
+ * @relative: Relative offset for the partition
+ * @part_num: Current partition number
+ * @which_part: Target partition number
+ * @info: Returns a pointer to the partition info
+ * @disksig: Disk signature
+ *
+ * Return: 0 on success, negative on error
*/
static int part_get_info_extended(struct blk_desc *desc,
lbaint_t ext_part_sector, lbaint_t relative,