函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new)

返回类型:void

参数:

类型参数名称
struct task_struct *task
unsigned longrlim_new
40  nsecs等于rlim_newNSEC_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)
调用者
名称描述
do_prlimitmake sure you are allowed to change @tsk limits before calling this
selinux_bprm_committing_credsPrepare a process for imminent new credential changes due to exec