nodelist.h
来自「linux/unix下c/s形式的资源监视,客户端负责搜集机器,再传送到服务端.」· C头文件 代码 · 共 33 行
H
33 行
#ifndef _NODELIST_H_#define _NODELIST_H_#include "statinfo.h"#include "config.h"#include <linux/proc_fs.h>struct node_entry { char host[20]; /* host's ip address */ system_load_info* sysload; /* system load */ long timestamp; /* timestamp when system load is last modified */ struct proc_dir_entry *dir; /* this node's dir entry in /proc/cluster */ struct node_entry* prev; struct node_entry* next;};void nlist_init();system_load_info* nlist_get(const char* host_ip);/* update the node list according to the new sysload packet */void nlist_update(const char* host_ip, system_load_info* sysload);/* check the status of current node list */void nlist_check();/* remove all nodes in the list */void nlist_removeall();#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?