summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2014-08-14 21:04:01 +0200
committerKarel Zak2014-08-14 21:04:01 +0200
commit5175ae87384e3136497c33ffa7bd1b2c2e14af2e (patch)
treeed2685265a761ce5fb98c50137960d7d2aa98040 /libfdisk/src/table.c
parentlibfdisk: final parttype API cleanup (diff)
downloadkernel-qcow2-util-linux-5175ae87384e3136497c33ffa7bd1b2c2e14af2e.tar.gz
kernel-qcow2-util-linux-5175ae87384e3136497c33ffa7bd1b2c2e14af2e.tar.xz
kernel-qcow2-util-linux-5175ae87384e3136497c33ffa7bd1b2c2e14af2e.zip
libfdisk: more docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r--libfdisk/src/table.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c
index 61876d0ef..eb0983895 100644
--- a/libfdisk/src/table.c
+++ b/libfdisk/src/table.c
@@ -67,7 +67,7 @@ void fdisk_ref_table(struct fdisk_table *tb)
* @tb: table pointer
*
* De-incremparts reference counter, on zero the @tb is automatically
- * deallocated by fdisk_free_table().
+ * deallocated.
*/
void fdisk_unref_table(struct fdisk_table *tb)
{
@@ -324,6 +324,13 @@ static int cmp_parts_wrapper(struct list_head *a, struct list_head *b, void *dat
return cmp(pa, pb);
}
+/**
+ * fdisk_table_sort_partitions:
+ * @tb: table
+ * @cmp: compare function
+ *
+ * Sort partition in the table.
+ */
int fdisk_table_sort_partitions(struct fdisk_table *tb,
int (*cmp)(struct fdisk_partition *,
struct fdisk_partition *))
@@ -461,8 +468,7 @@ static int check_container_freespace(struct fdisk_context *cxt,
* This function adds freespace (described by fdisk_partition) to @table, it
* allocates a new table if the @table points to NULL.
*
- * Note that free space smaller than grain (see fdisk_topology_get_grain()) is
- * ignored.
+ * Note that free space smaller than grain (see fdisk_get_grain()) is ignored.
* Returns 0 on success, otherwise, a corresponding error.
*/