函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:astpath_timer_check - POSIX CPU timers fast path.*@tsk: The task (thread) being checked.* Check the task and thread group timers. If both are zero (there are no* timers set) return false. Otherwise snapshot the task and thread group

函数原型:static inline bool fastpath_timer_check(struct task_struct *tsk)

返回类型:bool

参数:

类型参数名称
struct task_struct *tsk
1064  pct等于 Empty if CONFIG_POSIX_CPUTIMERS=n
1067  如果非Check whether all cache entries contain U64_MAX, i.e. eternal expiry time
1070  task_sample_cputime(tsk, samples)
1071  如果ask_cputimers_expired - Check whether posix CPU timers are expired*@samples: Array of current samples for the CPUCLOCK clocks*@pct: Pointer to a posix_cputimers container* Returns true if any member of @samples is greater than the corresponding则返回:true
1075  sig等于信号
1076  pct等于Empty if CONFIG_POSIX_TIMERS=n
1092  如果READ_ONCE(timers_active)且非READ_ONCE(expiry_active)则
1095  proc_sample_cputime_atomic( & cputime_atomic, samples)
1098  如果ask_cputimers_expired - Check whether posix CPU timers are expired*@samples: Array of current samples for the CPUCLOCK clocks*@pct: Pointer to a posix_cputimers container* Returns true if any member of @samples is greater than the corresponding则返回:true
1102  如果dl_task(tsk)且dl_overrun则返回:true
1105  返回:false
调用者
名称描述
run_posix_cpu_timersThis is called from the timer interrupt handler. The irq handler has* already updated our counts. We need to check if any timers fire now.* Interrupts are disabled.