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

Name:posix_cpu_timer_rearm

Proto:static void posix_cpu_timer_rearm(struct k_itimer *timer)

Type:void

Parameter:

TypeParameterName
struct k_itimer *timer
978  clkid = CPUCLOCK_WHICH(it_clock)
979  ctmr = cpu
980  p = task
985  If WARN_ON_ONCE(!p) Then Return
991  If CPUCLOCK_PERTHREAD(it_clock) Then
992  now = Sample a per-thread clock for the given task. clkid is validated.
993  Update expiry time from increment, and increase overrun count,* given the current clock sample.
994  If Value for the false possibility is greater at compile time(exit state) Then Return
998  sighand = lock_task_sighand(p, & flags)
999  If Not sighand Then Return
1001  Else
1006  sighand = lock_task_sighand(p, & flags)
1013  Return
1016  Go to unlock
1018  now = Sample a process (thread group) clock for the given task clkid. If the* group's cputime accounting is already enabled, read the atomic* store. Otherwise a full update is required. Task's sighand lock must be
1019  Update expiry time from increment, and increase overrun count,* given the current clock sample.
1026  Insert the timer on the appropriate list before any timers that* expire later. This must be called with the sighand lock held.
1027  unlock :
1028  unlock_task_sighand(p, & flags)
Caller
NameDescribe
cpu_timer_fireThe timer is locked, fire it and arrange for its reload.