time.c.txt

来自「一个很好的LINUX源代码分析笔记」· 文本 代码 · 共 19 行

TXT
19
字号
any question, send email to netxiong@263.net

相关文件:
	/kernel/timer.c

 timer_interrupt() needs to keep up the real-time clock,
 as well as call the "do_timer()" routine every clocktick
该文件相对应于i386的体系结构,每当一个时钟滴答过后,都要调用/kernel/timer.c中的do_timer将jiffies值增加一,同时 mark_bh(TIMER_BH).

**********************************基本函数**********************************************
(1):static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
	#时钟中断处理程序
	#调用do_timer_interrupt(irq, NULL, regs);

(2):static inline void do_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
	#调用 do_timer(regs);


****************************************************************************************

⌨️ 快捷键说明

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