Lines Matching refs:_p
52 #define BSDSTAT_DECL_METHODS(_p) \
54 void (*setfmt)(_p, const char *); \
56 void (*collect_cur)(_p); \
58 void (*collect_tot)(_p); \
60 void (*update_tot)(_p); \
62 int (*get_curstat)(_p, int, char [], size_t); \
64 int (*get_totstat)(_p, int, char [], size_t); \
66 void (*print_header)(_p, FILE *); \
68 void (*print_current)(_p, FILE *); \
70 void (*print_total)(_p, FILE *); \
72 void (*print_verbose)(_p, FILE *); \
74 void (*print_fields)(_p, FILE *)
117 #define BSDSTAT_BOUNCE(_p, _t) do { \
118 _p->base.setfmt = _t##_setfmt; \
119 _p->base.collect_cur = _t##_collect_cur; \
120 _p->base.collect_tot = _t##_collect_tot; \
121 _p->base.update_tot = _t##_update_tot; \
122 _p->base.get_curstat = _t##_get_curstat; \
123 _p->base.get_totstat = _t##_get_totstat; \
124 _p->base.print_header = _t##_print_header; \
125 _p->base.print_current = _t##_print_current; \
126 _p->base.print_total = _t##_print_total; \
127 _p->base.print_verbose = _t##_print_verbose; \
128 _p->base.print_fields = _t##_print_fields; \