函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_cpu_itimer

函数原型:static void set_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, const struct itimerspec64 *const value, struct itimerspec64 *const ovalue)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
unsigned intclock_id
const struct itimerspec64 *constvalue
struct itimerspec64 *constovalue
173  it等于it[clock_id]
179  nval等于64位timespec时间转换到纳秒
180  ninterval等于64位timespec时间转换到纳秒
182  spin_lock_irq( & siglock)
184  oval等于expires
185  ointerval等于incr
186  如果ovalnval
187  如果nval大于0则nval加等于TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ
189  Set one of the process-wide special case CPU timers or RLIMIT_CPU.* The tsk->sighand->siglock must be held by the caller.
191  expires等于nval
192  incr等于ninterval
193  mer_state - called when itimer is started or canceled*@which: name of the interval timer*@value: the itimers value, itimer is canceled if value->it_value is* zero, otherwise it is started*@expires: the itimers expiry time
196  spin_unlock_irq( & siglock)
198  如果ovalue
199  it_value等于纳秒转换到64位timespec时间
200  it_interval等于纳秒转换到64位timespec时间
调用者
名称描述
do_setitimer