函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_cpu_timer_rearm

函数原型:static void posix_cpu_timer_rearm(struct k_itimer *timer)

返回类型:void

参数:

类型参数名称
struct k_itimer *timer
978  clkid等于CPUCLOCK_WHICH(it_clock)
979  ctmr等于cpu
980  p等于task
985  如果WARN_ON_ONCE(!p)则返回
991  如果CPUCLOCK_PERTHREAD(it_clock)则
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  如果此条件成立可能性小(为编译器优化)(进程退出时状态)则返回
998  sighand等于lock_task_sighand(p, & flags)
999  如果非sighand则返回
1001  否则
1006  sighand等于lock_task_sighand(p, & flags)
1013  返回
1016  转到: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)
调用者
名称描述
cpu_timer_fireThe timer is locked, fire it and arrange for its reload.