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:
@@ -95,35 +95,35 @@ struct slabinfo_reap {
|
||||
};
|
||||
|
||||
|
||||
#define PROCPS_SLABINFO_GET( slabinfo, actual_enum, type ) \
|
||||
procps_slabinfo_get( slabinfo, actual_enum ) -> result . type
|
||||
#define PROCPS_SLABINFO_GET( info, actual_enum, type ) \
|
||||
procps_slabinfo_get( info, actual_enum ) -> result . type
|
||||
|
||||
#define PROCPS_SLABINFO_VAL( relative_enum, type, stack ) \
|
||||
stack -> head [ relative_enum ] . result . type
|
||||
|
||||
|
||||
struct procps_slabinfo;
|
||||
struct slabinfo_info;
|
||||
|
||||
int procps_slabinfo_new (struct procps_slabinfo **info);
|
||||
int procps_slabinfo_ref (struct procps_slabinfo *info);
|
||||
int procps_slabinfo_unref (struct procps_slabinfo **info);
|
||||
int procps_slabinfo_new (struct slabinfo_info **info);
|
||||
int procps_slabinfo_ref (struct slabinfo_info *info);
|
||||
int procps_slabinfo_unref (struct slabinfo_info **info);
|
||||
|
||||
struct slabinfo_result *procps_slabinfo_get (
|
||||
struct procps_slabinfo *info,
|
||||
struct slabinfo_info *info,
|
||||
enum slabinfo_item item);
|
||||
|
||||
struct slabinfo_reap *procps_slabinfo_reap (
|
||||
struct procps_slabinfo *info,
|
||||
struct slabinfo_info *info,
|
||||
enum slabinfo_item *items,
|
||||
int numitems);
|
||||
|
||||
struct slabinfo_stack *procps_slabinfo_select (
|
||||
struct procps_slabinfo *info,
|
||||
struct slabinfo_info *info,
|
||||
enum slabinfo_item *items,
|
||||
int numitems);
|
||||
|
||||
struct slabinfo_stack **procps_slabinfo_sort (
|
||||
struct procps_slabinfo *info,
|
||||
struct slabinfo_info *info,
|
||||
struct slabinfo_stack *stacks[],
|
||||
int numstacked,
|
||||
enum slabinfo_item sortitem,
|
||||
|
Reference in New Issue
Block a user