2 * $FreeBSD: src/contrib/top/machine.h,v 1.4.6.1 2002/08/11 17:09:25 dwmalone Exp $
3 * $DragonFly: src/contrib/top/machine.h,v 1.3 2006/02/15 12:54:36 corecode Exp $
7 * This file defines the interface between top and the machine-dependent
8 * module. It is NOT machine dependent and should not need to be changed
9 * for any specific machine.
13 * the statics struct is filled in by machine_init
17 char **procstate_names;
18 char **cpustate_names;
27 * the system_info struct is filled in by a machine dependent routine.
30 #ifdef p_active /* uw7 define macro p_active */
31 #define P_ACTIVE p_pactive
33 #define P_ACTIVE p_active
39 double load_avg[NUM_AVERAGES];
41 int P_ACTIVE; /* number of procs considered "active" */
46 struct timeval boottime;
49 /* cpu_states is an array of percentages * 10. For example,
50 the (integer) value 105 is 10.5% (or .105).
54 * the process_select struct tells get_process_info what processes we
55 * are interested in seeing
60 int idle; /* show idle processes */
61 int self; /* show self */
62 int system; /* show system processes */
63 int threads; /* show threads */
64 int only_threads; /* show only threads */
65 int uid; /* only this uid (unless uid == -1) */
66 char *command; /* only this command (unless == NULL) */
69 /* routines defined by the machine dependent module */
71 char *format_header();
72 char *format_next_process();
74 /* non-int routines typically used by the machine dependent module */