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

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

Proto:void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
unsigned longrlim_new
40  nsecs = rlim_new * NSEC_PER_SEC
42  spin_lock_irq( & siglock)
43  Set one of the process-wide special case CPU timers or RLIMIT_CPU.* The tsk->sighand->siglock must be held by the caller.
44  spin_unlock_irq( & siglock)