函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the time remaining on a POSIX.1b interval timer.

函数原型:static int do_timer_gettime(timer_t timer_id, struct itimerspec64 *setting)

返回类型:int

参数:

类型参数名称
timer_ttimer_id
struct itimerspec64 *setting
700  ret等于0
702  timr等于lock_timer(timer_id, & flags)
703  如果非timr则返回:负EINVAL
706  memset(setting, 0, setting的长度)
707  kc等于kclock
708  如果WARN_ON_ONCE(!kc || !timer_get)则ret等于负EINVAL
710  否则timer_get(timr, setting)
713  unlock_timer(timr, flags)
714  返回:ret
调用者
名称描述
SYSCALL_DEFINE2Get the time remaining on a POSIX.1b interval timer.