函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set one of the process-wide special case CPU timers or RLIMIT_CPU.* The tsk->sighand->siglock must be held by the caller.

函数原型:void set_process_cpu_timer(struct task_struct *tsk, unsigned int clkid, u64 *newval, u64 *oldval)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
unsigned intclkid
u64 *newval
u64 *oldval
1183  如果WARN_ON_ONCE(clkid >= CPUCLOCK_SCHED)则返回
1186  nextevt等于nextevt
1187  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
1189  如果oldval
1195  如果oldval
1196  如果oldval小于等于now
1199  否则
1200  oldval减等于now
1204  如果非newval则返回
1206  newval加等于now
1213  如果newval小于nextevtnextevt等于newval
1216  tick_dep_set_signal(信号, TICK_DEP_BIT_POSIX_TIMER)
调用者
名称描述
update_rlimit_cpuCalled after updating RLIMIT_CPU to run cpu timer and update* tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if* necessary. Needs siglock protection since other code may update the* expiration cache as well.
set_cpu_itimer