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

📄 drcom_linux.h

📁 AODV协议实现
💻 H
字号:
#ifndef DRCOM_LINUX_H#define DRCOM_LINUX_H/* remember to define these in the makefile (just for 2.4 kernels)#define MODULE#define __KERNEL__*/#if (!(defined(__KERNEL__) && defined(MODULE)))#error Please define __KERNEL__ and MODULE#endif#include <linux/init.h>#include <linux/module.h>#include <linux/kernel.h>#ifndef UTS_RELEASE#include <linux/version.h>#endif#if ((!defined(KERNEL_VERSION)) || (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)))#error Kernels older than 2.4.0 are not supported (yet).#endif#define MAJOR_MINOR (LINUX_VERSION_CODE & 0x00ffff00)#define REVISION (LINUX_VERSION_CODE & 0x000000ff)#define MAJOR_MINOR_IS(a,b) (MAJOR_MINOR == KERNEL_VERSION(a,b,0))#if (!(MAJOR_MINOR_IS(2,4) || MAJOR_MINOR_IS(2,6)))#error Currently only 2.4.x and 2.6.x kernels are supported.#endif#endif

⌨️ 快捷键说明

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