函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_timer_settime

函数原型:static int do_timer_settime(timer_t timer_id, int tmr_flags, struct itimerspec64 *new_spec64, struct itimerspec64 *old_spec64)

返回类型:int

参数:

类型参数名称
timer_ttimer_id
inttmr_flags
struct itimerspec64 *new_spec64
struct itimerspec64 *old_spec64
883  error等于0
885  如果非Returns true if the timespec64 is norm, false if denorm:或非Returns true if the timespec64 is norm, false if denorm:则返回:负EINVAL
889  如果old_spec64memset(old_spec64, 0, old_spec64的长度)
892  timr等于lock_timer(timer_id, & flags)
893  retry :
894  如果非timr则返回:负EINVAL
897  kc等于kclock
898  如果WARN_ON_ONCE(!kc || !timer_set)则error等于负EINVAL
900  否则error等于timer_set(timr, tmr_flags, new_spec64, old_spec64)
903  如果error恒等于SPDX-License-Identifier: GPL-2.0
905  old_spec64 = NULL
907  timr等于On PREEMPT_RT this prevent priority inversion against softirq kthread in* case it gets preempted while executing a timer callback. See comments in* hrtimer_cancel_wait_running. For PREEMPT_RT=n this just results in a* cpu_relax().
908  转到:retry
910  unlock_timer(timr, flags)
912  返回:error
调用者
名称描述
SYSCALL_DEFINE4Set a POSIX.1b interval timer