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

📄 rc_timer.c

📁 Adhoc无线网络路由协议源码
💻 C
字号:
#include "rc_timer.h"#include "module_main.h"#include "route_cache.h"#include <linux/stddef.h>#include <linux/string.h>#include <linux/unistd.h>#include <linux/fs.h>struct timer_list rc_timer ; int sync_it();void rc_timer_handler(unsigned long data){	/* Sync with the kernel routing table */	sync_it();		/* set the timer off again */	rc_timer.expires = jiffies + (EXPIRE_TIME * HZ);	rc_timer.data = 0;	rc_timer.function = rc_timer_handler ;	add_timer(&rc_timer);}intsync_it(){//	int fd;//	fd = open("/proc/net/route", O_RDONLY);//	printk(KERN_INFO "route_check.o : sync_it() \n");//	close(fd);		return 0;}

⌨️ 快捷键说明

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