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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void run_posix_cpu_timers(void)

Type:void

Parameter:Nothing

1115  tsk = current process
1118  LIST_HEAD(firing)
1120  lockdep_assert_irqs_disabled()
1126  If Not 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 Then Return
1129  If Not lock_task_sighand(tsk, & flags) Then Return
1136  Check for any per-thread CPU timers that have fired and move them off* the tsk->cpu_timers[N] list onto the firing list. Here we update the
1138  Check for any per-thread CPU timers that have fired and move them* off the tsk->*_timers list onto the firing list. Per-thread timers* have already been taken off.
1148  unlock_task_sighand(tsk, & flags)
1159  spin_lock( & it_lock)
1160  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1161  cpu_firing = firing
1162  firing = 0
1168  If Value is more likely to compile time(cpu_firing >= 0) Then The timer is locked, fire it and arrange for its reload.
1170  spin_unlock( & it_lock)