Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/top/machine.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | #define TOP_MAX_UIDS 8 | ||||
bool swap; /* show swap usage */ | bool swap; /* show swap usage */ | ||||
bool kidle; /* show per-CPU idle threads */ | bool kidle; /* show per-CPU idle threads */ | ||||
int pid; /* only this pid (unless pid == -1) */ | int pid; /* only this pid (unless pid == -1) */ | ||||
const char *command; /* only this command (unless == NULL) */ | const char *command; /* only this command (unless == NULL) */ | ||||
}; | }; | ||||
/* routines defined by the machine dependent module */ | /* routines defined by the machine dependent module */ | ||||
const char *format_header(const char *uname_field); | char *format_header(const char *uname_field); | ||||
char *format_next_process(void* handle, char *(*get_userid)(int), | char *format_next_process(void* handle, char *(*get_userid)(int), | ||||
int flags); | int flags); | ||||
void toggle_pcpustats(void); | void toggle_pcpustats(void); | ||||
void get_system_info(struct system_info *si); | void get_system_info(struct system_info *si); | ||||
int machine_init(struct statics *statics); | int machine_init(struct statics *statics); | ||||
int proc_owner(int pid); | 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 */ | ||||
extern struct process_select ps; | extern struct process_select ps; | ||||
void * | void * | ||||
get_process_info(struct system_info *si, struct process_select *sel, | get_process_info(struct system_info *si, struct process_select *sel, | ||||
int (*compare)(const void *, const void *)); | int (*compare)(const void *, const void *)); | ||||
#endif /* MACHINE_H */ | #endif /* MACHINE_H */ |