cpu.h
来自「net_snmp应用程序示例」· C头文件 代码 · 共 55 行
H
55 行
typedef struct netsnmp_cpu_info_s netsnmp_cpu_info; /* For rolling averages */struct netsnmp_cpu_history { long user_hist; long sys_hist; long idle_hist; long nice_hist; long total_hist; long ctx_hist; long intr_hist;};struct netsnmp_cpu_info_s { int idx; /* For hrDeviceTable */ char name[ SNMP_MAXBUF ]; char descr[ SNMP_MAXBUF ]; /* For UCD cpu stats */ long user_ticks; long nice_ticks; long sys_ticks; long idle_ticks; long wait_ticks; long kern_ticks; long intrpt_ticks; long sirq_ticks; /* For paging-related UCD stats */ /* XXX - Do these belong elsewhere ?? */ long pageIn; long pageOut; long swapIn; long swapOut; long nInterrupts; long nCtxSwitches; struct netsnmp_cpu_history *history; netsnmp_cpu_info *next;}; /* * Possibly not all needed ?? */netsnmp_cpu_info *netsnmp_cpu_get_first( void );netsnmp_cpu_info *netsnmp_cpu_get_next( netsnmp_cpu_info* );netsnmp_cpu_info *netsnmp_cpu_get_byIdx( int, int );netsnmp_cpu_info *netsnmp_cpu_get_byName( char*, int );netsnmp_cache *netsnmp_cpu_get_cache( void );int netsnmp_cpu_load( void );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?