Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-28 10:48:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline bool fastpath_timer_check(struct task_struct *tsk)

Type:bool

Parameter:

TypeParameterName
struct task_struct *tsk
1064  pct = Empty if CONFIG_POSIX_CPUTIMERS=n
1067  If Not Check whether all cache entries contain U64_MAX, i.e. eternal expiry time Then
1070  task_sample_cputime(tsk, samples)
1071  If 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 Then Return true
1075  sig = Signal handlers:
1076  pct = Empty if CONFIG_POSIX_TIMERS=n
1092  If READ_ONCE(timers_active) && Not READ_ONCE(expiry_active) Then
1095  proc_sample_cputime_atomic( & cputime_atomic, samples)
1098  If 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 Then Return true
1102  If dl_task(tsk) && dl_overrun Then Return true
1105  Return false
Caller
NameDescribe
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.