1 /* 2 * cpu.h - header file of the module to get cpu usage 3 * 4 * Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp> 5 * 6 * licensed under the GPL 7 */ 8 9 #ifndef __CPU_H 10 #define __CPU_H 11 12 #ifdef IGNORE_PROC 13 #define COMM_LEN 16 14 #endif 15 #define MAX_PROC 5 16 #define MAX_CPU 99 17 18 typedef struct _cpu_options { 19 int ignore_nice; 20 int cpu_number; 21 } cpu_options; 22 23 void cpu_init(void); 24 int cpu_get_usage(cpu_options *opts); 25 26 #endif 27