]> sourceware.org Git - lvm2.git/commitdiff
libdm: document use of dm_free() with histogram bounds
authorBryn M. Reeves <bmr@redhat.com>
Mon, 18 Jul 2016 17:20:01 +0000 (18:20 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Mon, 18 Jul 2016 17:48:34 +0000 (18:48 +0100)
libdm/libdevmapper.h

index 0f61f9c834d1a9f639d7068fcfa0e736d0e072dc..22700160a64da6de2d977e153e054e527a141ab0 100644 (file)
@@ -805,6 +805,10 @@ int dm_stats_get_region_nr_histogram_bins(const struct dm_stats *dms,
  * magnitude is one milisecond: attempting to use a histogram with a
  * boundary less than one milisecond when creating a region will cause
  * the region to be created with the precise_timestamps feature enabled.
+ *
+ * On sucess a pointer to the struct dm_histogram representing the
+ * bounds values is returned, or NULL in the case of error. The returned
+ * pointer should be freed using dm_free() when no longer required.
  */
 struct dm_histogram *dm_histogram_bounds_from_string(const char *bounds_str);
 
This page took 0.044911 seconds and 5 git commands to generate.