📄 mosstat.h
字号:
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <dirent.h>#include <libmosix.h>#include <sys/stat.h>#include <signal.h>#define openmosixdir "/proc/hpc/nodes"#define mosixdir "/proc/mosix/nodes"#define LISTPORT 10050#define mpidfile "/var/run/mosstatd.pid"/*struct mosix_info { unsigned long load; unsigned int speed; unsigned int ncpus; unsigned int util; unsigned int status; unsigned int mem; unsigned int rmem; unsigned int tmem;#ifdef CONFIG_MOSIX_RESEARCH unsigned int rio; unsigned int wio; #endif // CONFIG_MOSIX_REASEARCH };*/struct node_info{ int mosix_number; int real_node_number; int openmosix; int num_nodes; // yes i am sending this with every packet struct mosix_info mosix_info;};//read delay is the default time to wait when re-reading the mosix statsint read_delay = 500;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -