Changeset View
Changeset View
Standalone View
Standalone View
machine.h
| /* | /* | ||||
| * $FreeBSD$ | * $FreeBSD$ | ||||
| */ | */ | ||||
| /* | /* | ||||
| * This file defines the interface between top and the machine-dependent | * This file defines the interface between top and the machine-dependent | ||||
| * module. It is NOT machine dependent and should not need to be changed | * module. It is NOT machine dependent and should not need to be changed | ||||
| * for any specific machine. | * for any specific machine. | ||||
| */ | */ | ||||
| #ifndef MACHINE_H | |||||
| #define MACHINE_H | |||||
| #include "top.h" | |||||
| /* | /* | ||||
| * the statics struct is filled in by machine_init | * the statics struct is filled in by machine_init | ||||
| */ | */ | ||||
| struct statics | struct statics | ||||
| { | { | ||||
| char **procstate_names; | char **procstate_names; | ||||
| char **cpustate_names; | char **cpustate_names; | ||||
| char **memory_names; | char **memory_names; | ||||
| ▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | struct process_select | ||||
| int jid; /* only this jid (unless jid == -1) */ | int jid; /* only this jid (unless jid == -1) */ | ||||
| int jail; /* show jail ID */ | int jail; /* show jail ID */ | ||||
| int kidle; /* show per-CPU idle threads */ | int kidle; /* show per-CPU idle threads */ | ||||
| char *command; /* only this command (unless == NULL) */ | char *command; /* only this command (unless == NULL) */ | ||||
| }; | }; | ||||
| /* routines defined by the machine dependent module */ | /* routines defined by the machine dependent module */ | ||||
| char *format_header(); | char *format_header(); | ||||
| char *format_next_process(); | char *format_next_process(); | ||||
| void toggle_pcpustats(void); | |||||
| void get_system_info(struct system_info *si); | |||||
| int machine_init(struct statics *statics, char do_unames); | |||||
| int proc_owner(int pid); | |||||
| /* non-int routines typically used by the machine dependent module */ | /* non-int routines typically used by the machine dependent module */ | ||||
| char *printable(); | char *printable(); | ||||
| #endif /* MACHINE_H */ | |||||