⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memory_dynix.h

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 H
字号:
/* *  memory quantity mib groups * */#ifndef _MIBGROUP_MEMORY_DYNIX_H#define _MIBGROUP_MEMORY_DYNIX_H#include "mibdefs.h"/* * from /usr/include/sys/mc_param.h  */#define MMU_PAGESIZE 0x1000     /* 4096 bytes *//* * Here's the correct way to convert sectors to KB * #define S2KB(size) (((size)*DEV_BSIZE)/1024) * Here's the quick way plus no fear of overflow */#define S2KB(size)  ((size)/2)  /* sectors to KB */#define S2MB(size)  (((size)+1023)/2048)        /* sectors to MB */#define P2KB(size)  ((size)*(MMU_PAGESIZE/1024))        /* pages to KB */#define P2MB(size)  ((P2KB(size)+511)/1024)     /* pages to MB */void            init_memory_dynix(void);#endif                          /* _MIBGROUP_MEMORY_DYNIX_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -