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

Name:Insert the timer on the appropriate list before any timers that* expire later. This must be called with the sighand lock held.

Proto:static void arm_timer(struct k_itimer *timer)

Type:void

Parameter:

TypeParameterName
struct k_itimer *timer
489  clkidx = CPUCLOCK_WHICH(it_clock)
490  ctmr = cpu
491  newexp = cpu_timer_getexpires(ctmr)
492  p = task
495  If CPUCLOCK_PERTHREAD(it_clock) Then base = bases + clkidx
497  Else base = bases + clkidx
500  If Not cpu_timer_enqueue( & tqhead, ctmr) Then Return
509  If newexp < nextevt Then nextevt = newexp
512  If CPUCLOCK_PERTHREAD(it_clock) Then tick_dep_set_task(p, TICK_DEP_BIT_POSIX_TIMER)
514  Else tick_dep_set_signal( Signal handlers: , TICK_DEP_BIT_POSIX_TIMER)
Caller
NameDescribe
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
posix_cpu_timer_rearm