Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-timers.c Create Date:2022-07-28 10:46:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_timer_settime

Proto:static int do_timer_settime(timer_t timer_id, int tmr_flags, struct itimerspec64 *new_spec64, struct itimerspec64 *old_spec64)

Type:int

Parameter:

TypeParameterName
timer_ttimer_id
inttmr_flags
struct itimerspec64 *new_spec64
struct itimerspec64 *old_spec64
883  error = 0
885  If Not Returns true if the timespec64 is norm, false if denorm: || Not Returns true if the timespec64 is norm, false if denorm: Then Return -EINVAL
889  If old_spec64 Then memset(old_spec64, 0, size of old_spec64 )
892  timr = lock_timer(timer_id, & flags)
893  retry :
894  If Not timr Then Return -EINVAL
897  kc = kclock
898  If WARN_ON_ONCE(!kc || !timer_set) Then error = -EINVAL
900  Else error = timer_set(timr, tmr_flags, new_spec64, old_spec64)
903  If error == SPDX-License-Identifier: GPL-2.0 Then
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  Go to retry
910  unlock_timer(timr, flags)
912  Return error
Caller
NameDescribe
SYSCALL_DEFINE4Set a POSIX.1b interval timer