函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_getitimer

函数原型:static int do_getitimer(int which, struct itimerspec64 *value)

返回类型:int

参数:

类型参数名称
intwhich
struct itimerspec64 *value
78  tsk等于当前进程
81  :which恒等于Names of the interval timers, and structure* defining a timer setting:
82  spin_lock_irq( & siglock)
83  it_value等于mer_get_remtime - get remaining time for the timer*@timer: the timer to read* Returns the delta between the expiry time and now, which can be* less than zero or 1usec for an pending expired timer
84  it_interval等于Map the ktime_t to timespec conversion to ns_to_timespec function (it_real_incr)
86  spin_unlock_irq( & siglock)
87  退出
88  :which恒等于ITIMER_VIRTUAL
89  get_cpu_itimer(tsk, CPUCLOCK_VIRT, value)
90  退出
91  :which恒等于ITIMER_PROF
92  get_cpu_itimer(tsk, CPUCLOCK_PROF, value)
93  退出
94  默认
95  返回:负EINVAL
97  返回:0
调用者
名称描述
SYSCALL_DEFINE2
COMPAT_SYSCALL_DEFINE2