library: rename a couple of 'reap' structs to 'reaped'

In preparation for a documentation attempt, this patch
renames 'struct reap' to 'struct reaped' in two of our
interfaces. That will bring all the non-pid interfaces
into agreement since the <stat> api already used that.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2020-06-19 00:00:00 -05:00 committed by Craig Small
parent 740e585b9d
commit 52c847a019
4 changed files with 10 additions and 10 deletions

View File

@ -92,7 +92,7 @@ struct fetch_support {
int n_alloc; // number of above pointers allocated int n_alloc; // number of above pointers allocated
int n_inuse; // number of above pointers occupied int n_inuse; // number of above pointers occupied
int n_alloc_save; // last known reap.stacks allocation int n_alloc_save; // last known reap.stacks allocation
struct diskstats_reap results; // count + stacks for return to caller struct diskstats_reaped results; // count + stacks for return to caller
}; };
struct diskstats_info { struct diskstats_info {
@ -827,9 +827,9 @@ PROCPS_EXPORT struct diskstats_result *procps_diskstats_get (
* Harvest all the requested disks information providing * Harvest all the requested disks information providing
* the result stacks along with the total number of harvested. * the result stacks along with the total number of harvested.
* *
* Returns: pointer to a diskstats_reap struct on success, NULL on error. * Returns: pointer to a diskstats_reaped struct on success, NULL on error.
*/ */
PROCPS_EXPORT struct diskstats_reap *procps_diskstats_reap ( PROCPS_EXPORT struct diskstats_reaped *procps_diskstats_reap (
struct diskstats_info *info, struct diskstats_info *info,
enum diskstats_item *items, enum diskstats_item *items,
int numitems) int numitems)

View File

@ -81,7 +81,7 @@ struct diskstats_stack {
struct diskstats_result *head; struct diskstats_result *head;
}; };
struct diskstats_reap { struct diskstats_reaped {
int total; int total;
struct diskstats_stack **stacks; struct diskstats_stack **stacks;
}; };
@ -109,7 +109,7 @@ struct diskstats_result *procps_diskstats_get (
const char *name, const char *name,
enum diskstats_item item); enum diskstats_item item);
struct diskstats_reap *procps_diskstats_reap ( struct diskstats_reaped *procps_diskstats_reap (
struct diskstats_info *info, struct diskstats_info *info,
enum diskstats_item *items, enum diskstats_item *items,
int numitems); int numitems);

View File

@ -114,7 +114,7 @@ struct fetch_support {
int n_alloc; // number of above pointers allocated int n_alloc; // number of above pointers allocated
int n_inuse; // number of above pointers occupied int n_inuse; // number of above pointers occupied
int n_alloc_save; // last known reap.stacks allocation int n_alloc_save; // last known reap.stacks allocation
struct slabinfo_reap results; // count + stacks for return to caller struct slabinfo_reaped results; // count + stacks for return to caller
}; };
struct slabinfo_info { struct slabinfo_info {
@ -852,9 +852,9 @@ PROCPS_EXPORT struct slabinfo_result *procps_slabinfo_get (
* Harvest all the requested SLAB (individual nodes) information * Harvest all the requested SLAB (individual nodes) information
* providing the result stacks along with the total number of nodes. * providing the result stacks along with the total number of nodes.
* *
* Returns: pointer to a slabinfo_reap struct on success, NULL on error. * Returns: pointer to a slabinfo_reaped struct on success, NULL on error.
*/ */
PROCPS_EXPORT struct slabinfo_reap *procps_slabinfo_reap ( PROCPS_EXPORT struct slabinfo_reaped *procps_slabinfo_reap (
struct slabinfo_info *info, struct slabinfo_info *info,
enum slabinfo_item *items, enum slabinfo_item *items,
int numitems) int numitems)

View File

@ -90,7 +90,7 @@ struct slabinfo_stack {
struct slabinfo_result *head; struct slabinfo_result *head;
}; };
struct slabinfo_reap { struct slabinfo_reaped {
int total; int total;
struct slabinfo_stack **stacks; struct slabinfo_stack **stacks;
}; };
@ -114,7 +114,7 @@ struct slabinfo_result *procps_slabinfo_get (
struct slabinfo_info *info, struct slabinfo_info *info,
enum slabinfo_item item); enum slabinfo_item item);
struct slabinfo_reap *procps_slabinfo_reap ( struct slabinfo_reaped *procps_slabinfo_reap (
struct slabinfo_info *info, struct slabinfo_info *info,
enum slabinfo_item *items, enum slabinfo_item *items,
int numitems); int numitems);