函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_cpu_itimer

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

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
unsigned intclock_id
struct itimerspec64 *constvalue
51  it等于it[clock_id]
53  spin_lock_irq( & siglock)
55  val等于expires
56  interval等于incr
57  如果val
60  hread_group_sample_cputime - Sample cputime for a given task*@tsk: Task for which cputime needs to be started*@samples: Storage for time samples* Called from sys_getitimer() to calculate the expiry time of an active* timer
61  t等于samples[clock_id]
63  如果val小于tval等于TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ
66  否则val减等于t
70  spin_unlock_irq( & siglock)
72  it_value等于纳秒转换到64位timespec时间
73  it_interval等于纳秒转换到64位timespec时间
调用者
名称描述
do_getitimer