函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_setitimer

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

返回类型:int

参数:

类型参数名称
intwhich
struct itimerspec64 *value
struct itimerspec64 *ovalue
213  tsk等于当前进程
218  :which恒等于Names of the interval timers, and structure* defining a timer setting:
219  again :
220  spin_lock_irq( & siglock)
221  timer等于real_timer
222  如果ovalue
231  转到:again
233  expires等于vert a timespec64 to ktime_t format:
234  如果expires不等于0则
238  否则it_real_incr等于0
241  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
242  spin_unlock_irq( & siglock)
243  退出
244  :which恒等于ITIMER_VIRTUAL
245  set_cpu_itimer(tsk, CPUCLOCK_VIRT, value, ovalue)
246  退出
247  :which恒等于ITIMER_PROF
248  set_cpu_itimer(tsk, CPUCLOCK_PROF, value, ovalue)
249  退出
250  默认
251  返回:负EINVAL
253  返回:0
调用者
名称描述
clear_itimer
alarm_setitimeralarm_setitimer - set alarm in seconds*@seconds: number of seconds until alarm* 0 disables the alarm* Returns the remaining time in seconds of a pending timer or 0 when* the timer is not active
SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE3