函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sched_rt_period_timer

函数原型:static enum hrtimer_restart sched_rt_period_timer(struct hrtimer *timer)

返回类型:enum hrtimer_restart

参数:

类型参数名称
struct hrtimer *timer
19  rt_b等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(timer, structrt_bandwidth, rt_period_timer)
21  idle等于0
24  raw_spin_lock( & nests inside the rq lock: )
25  循环
26  overrun等于hrtimer_forward_now - forward the timer expiry so it expires after now*@timer: hrtimer to forward*@interval: the interval to forward* Forward the timer expiry so it will expire after the current time* of the hrtimer clock base
27  如果非overrun退出
30  raw_spin_unlock( & nests inside the rq lock: )
31  idle等于do_sched_rt_period_timer(rt_b, overrun)
32  raw_spin_lock( & nests inside the rq lock: )
34  如果idlert_period_active等于0
36  raw_spin_unlock( & nests inside the rq lock: )
38  返回:如果idleTimer is not restarted 否则Timer must be restarted