函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timer.c Create Date:2022-07-27 11:39:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__run_timers - run all expired timers (if any) on this CPU.*@base: the timer vector to be processed.

函数原型:static inline void __run_timers(struct timer_base *base)

返回类型:void

参数:

类型参数名称
struct timer_base *base
1745  如果非time_after_eq(jiffies, clk)则返回
1748  timer_base_lock_expiry(base)
1749  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & lock)
1765  must_forward_clk = false
1767 time_after_eq(jiffies, clk)循环
1769  levels等于collect_expired_timers(base, heads)
1770  clk自加
1772 levels自减循环
1773  expire_timers(base, heads + levels)
1775  raw_spin_unlock_irq( & lock)
1776  timer_base_unlock_expiry(base)
调用者
名称描述
run_timer_softirqThis function runs timers and the timer-tq in bottom half context.