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:
@@ -135,25 +135,25 @@ struct meminfo_stack {
|
||||
};
|
||||
|
||||
|
||||
#define PROCPS_MEMINFO_GET( meminfo, actual_enum, type ) \
|
||||
procps_meminfo_get( meminfo, actual_enum ) -> result . type
|
||||
#define PROCPS_MEMINFO_GET( info, actual_enum, type ) \
|
||||
procps_meminfo_get( info, actual_enum ) -> result . type
|
||||
|
||||
#define PROCPS_MEMINFO_VAL( relative_enum, type, stack) \
|
||||
stack -> head [ relative_enum ] . result . type
|
||||
|
||||
|
||||
struct procps_meminfo;
|
||||
struct meminfo_info;
|
||||
|
||||
int procps_meminfo_new (struct procps_meminfo **info);
|
||||
int procps_meminfo_ref (struct procps_meminfo *info);
|
||||
int procps_meminfo_unref (struct procps_meminfo **info);
|
||||
int procps_meminfo_new (struct meminfo_info **info);
|
||||
int procps_meminfo_ref (struct meminfo_info *info);
|
||||
int procps_meminfo_unref (struct meminfo_info **info);
|
||||
|
||||
struct meminfo_result *procps_meminfo_get (
|
||||
struct procps_meminfo *info,
|
||||
struct meminfo_info *info,
|
||||
enum meminfo_item item);
|
||||
|
||||
struct meminfo_stack *procps_meminfo_select (
|
||||
struct procps_meminfo *info,
|
||||
struct meminfo_info *info,
|
||||
enum meminfo_item *items,
|
||||
int numitems);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user