]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add doxygen help for crush_get_bucket_item_weight
authorLoic Dachary <ldachary@redhat.com>
Sun, 19 Feb 2017 09:23:17 +0000 (10:23 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sun, 19 Feb 2017 09:23:17 +0000 (10:23 +0100)
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/crush/crush.h

index 234f81b6585289cd49a5c65f303a106274836bee..677ff565d148f30fafdbc534d16062c63a737340 100644 (file)
@@ -376,6 +376,17 @@ struct crush_map {
 
 
 /* crush.c */
+/** @ingroup API
+ *
+ * Return the 16.16 fixed point weight of the item at __pos__ (zero
+ * based index) within the bucket __b__. If __pos__ is negative or
+ * greater or equal to the number of items in the bucket, return 0.
+ *
+ * @param b the bucket containing items
+ * @param pos the zero based index of the item
+ *
+ * @returns the 16.16 fixed point item weight
+ */
 extern int crush_get_bucket_item_weight(const struct crush_bucket *b, int pos);
 extern void crush_destroy_bucket_uniform(struct crush_bucket_uniform *b);
 extern void crush_destroy_bucket_list(struct crush_bucket_list *b);