Linux内核定时器的应用 [CODE]#include<linux/init.h#include<linux/sched.h#include<linux/module.h#include<linux/jiffies.h#include<asm/io.h#include<linux/timer.h#include<linux/wait.hMODULE_LICENSE("GPL");static DECLARE_WAIT_QUEUE_HEAD(wq);static int flag = 0;struct timer_list my_timer;void timer_test(unsigned long data){ printk("this is a test\n");...[ 查看全文 ]