library: standardize all the 'context' structure names
This patch attempts to standardize the naming of those most important (declared not defined) context structs. The present practice represents a hodge podge of names only some of which reflect the source /proc file name. And 2 of those file names embed a literal 'info' which is likely the origin of that required parm identifier. Now we'll append a universal '_info' to such structure names, while including the names of those /proc pseudo files where possible. In any case, that context struct will *always* begin with the actual module/header file name. And only the following two sound a little weird! ---------> 'meminfo_info' + 'slabinfo_info' <--------- Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -285,25 +285,25 @@ struct vmstat_stack {
|
||||
};
|
||||
|
||||
|
||||
#define PROCPS_VMSTAT_GET( vmstat, actual_enum, type ) \
|
||||
procps_vmstat_get( vmstat, actual_enum ) -> result . type
|
||||
#define PROCPS_VMSTAT_GET( info, actual_enum, type ) \
|
||||
procps_vmstat_get( info, actual_enum ) -> result . type
|
||||
|
||||
#define PROCPS_VMSTAT_VAL( relative_enum, type, stack ) \
|
||||
stack -> head [ relative_enum ] . result . type
|
||||
|
||||
|
||||
struct procps_vmstat;
|
||||
struct vmstat_info;
|
||||
|
||||
int procps_vmstat_new (struct procps_vmstat **info);
|
||||
int procps_vmstat_ref (struct procps_vmstat *info);
|
||||
int procps_vmstat_unref (struct procps_vmstat **info);
|
||||
int procps_vmstat_new (struct vmstat_info **info);
|
||||
int procps_vmstat_ref (struct vmstat_info *info);
|
||||
int procps_vmstat_unref (struct vmstat_info **info);
|
||||
|
||||
struct vmstat_result *procps_vmstat_get (
|
||||
struct procps_vmstat *info,
|
||||
struct vmstat_info *info,
|
||||
enum vmstat_item item);
|
||||
|
||||
struct vmstat_stack *procps_vmstat_select (
|
||||
struct procps_vmstat *info,
|
||||
struct vmstat_info *info,
|
||||
enum vmstat_item *items,
|
||||
int numitems);
|
||||
|
||||
|
Reference in New Issue
Block a user