函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\timerfd.c Create Date:2022-07-29 10:51:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_timerfd_gettime

函数原型:static int do_timerfd_gettime(int ufd, struct itimerspec64 *t)

返回类型:int

参数:

类型参数名称
intufd
struct itimerspec64 *t
511  ret等于timerfd_fget(ufd, & f)
512  如果ret则返回:ret
514  ctx等于 needed for tty driver, and maybe others
516  spin_lock_irq( & lock)
517  如果expiredtintv
518  expired等于0
520  如果isalarm(ctx)则
521  ticks加等于alarm_forward_now( & alarm, tintv)减1
524  alarm_restart( & alarm)
525  否则
529  hrtimer_restart( & tmr)
532  it_value等于Map the ktime_t to timespec conversion to ns_to_timespec function (timerfd_get_remaining(ctx))
533  it_interval等于Map the ktime_t to timespec conversion to ns_to_timespec function (tintv)
534  spin_unlock_irq( & lock)
535  fdput(f)
536  返回:0
调用者
名称描述
SYSCALL_DEFINE2