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:
18
proc/stat.h
18
proc/stat.h
@ -97,31 +97,31 @@ struct stat_reaped {
|
||||
#define PROCPS_STAT_SUMMARY_ID -11111
|
||||
#define PROCPS_STAT_NODE_INVALID -22222
|
||||
|
||||
#define PROCPS_STAT_GET( statinfo, actual_enum, type ) \
|
||||
procps_stat_get( statinfo, actual_enum ) -> result . type
|
||||
#define PROCPS_STAT_GET( info, actual_enum, type ) \
|
||||
procps_stat_get( info, actual_enum ) -> result . type
|
||||
|
||||
#define PROCPS_STAT_VAL( relative_enum, type, stack ) \
|
||||
stack -> head [ relative_enum ] . result . type
|
||||
|
||||
|
||||
struct procps_statinfo;
|
||||
struct stat_info;
|
||||
|
||||
int procps_stat_new (struct procps_statinfo **info);
|
||||
int procps_stat_ref (struct procps_statinfo *info);
|
||||
int procps_stat_unref (struct procps_statinfo **info);
|
||||
int procps_stat_new (struct stat_info **info);
|
||||
int procps_stat_ref (struct stat_info *info);
|
||||
int procps_stat_unref (struct stat_info **info);
|
||||
|
||||
struct stat_result *procps_stat_get (
|
||||
struct procps_statinfo *info,
|
||||
struct stat_info *info,
|
||||
enum stat_item item);
|
||||
|
||||
struct stat_reaped *procps_stat_reap (
|
||||
struct procps_statinfo *info,
|
||||
struct stat_info *info,
|
||||
enum stat_reap_type what,
|
||||
enum stat_item *items,
|
||||
int numitems);
|
||||
|
||||
struct stat_stack *procps_stat_select (
|
||||
struct procps_statinfo *info,
|
||||
struct stat_info *info,
|
||||
enum stat_item *items,
|
||||
int numitems);
|
||||
|
||||
|
Reference in New Issue
Block a user