Deleted Added
full compact
machine.h (265249) machine.h (300395)
1/*
1/*
2 * $FreeBSD: head/contrib/top/machine.h 265249 2014-05-02 23:30:39Z bdrewery $
2 * $FreeBSD: head/contrib/top/machine.h 300395 2016-05-22 04:17:00Z ngie $
3 */
4
5/*
6 * This file defines the interface between top and the machine-dependent
7 * module. It is NOT machine dependent and should not need to be changed
8 * for any specific machine.
9 */
3 */
4
5/*
6 * This file defines the interface between top and the machine-dependent
7 * module. It is NOT machine dependent and should not need to be changed
8 * for any specific machine.
9 */
10#ifndef MACHINE_H
11#define MACHINE_H
10
12
13#include "top.h"
14
11/*
12 * the statics struct is filled in by machine_init
13 */
14struct statics
15{
16 char **procstate_names;
17 char **cpustate_names;
18 char **memory_names;

--- 50 unchanged lines hidden (view full) ---

69 int jid; /* only this jid (unless jid == -1) */
70 int jail; /* show jail ID */
71 int kidle; /* show per-CPU idle threads */
72 char *command; /* only this command (unless == NULL) */
73};
74
75/* routines defined by the machine dependent module */
76
15/*
16 * the statics struct is filled in by machine_init
17 */
18struct statics
19{
20 char **procstate_names;
21 char **cpustate_names;
22 char **memory_names;

--- 50 unchanged lines hidden (view full) ---

73 int jid; /* only this jid (unless jid == -1) */
74 int jail; /* show jail ID */
75 int kidle; /* show per-CPU idle threads */
76 char *command; /* only this command (unless == NULL) */
77};
78
79/* routines defined by the machine dependent module */
80
77char *format_header();
78char *format_next_process();
81char *format_header();
82char *format_next_process();
83void toggle_pcpustats(void);
84void get_system_info(struct system_info *si);
85int machine_init(struct statics *statics, char do_unames);
86int proc_owner(int pid);
79
80/* non-int routines typically used by the machine dependent module */
87
88/* non-int routines typically used by the machine dependent module */
81char *printable();
89char *printable();
90
91#endif /* MACHINE_H */