mosstat.h

来自「openmosix viewer图形界面工具。o penmosix viewer」· C头文件 代码 · 共 45 行

H
45
字号
#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 + =
减小字号Ctrl + -
显示快捷键?