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:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Set a POSIX.1b interval timer.

Proto:int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting)

Type:int

Parameter:

TypeParameterName
struct k_itimer *timr
intflags
struct itimerspec64 *new_setting
struct itimerspec64 *old_setting
842  kc = kclock
846  If old_setting Then Get the time remaining on a POSIX.1b interval timer. This function* is ALWAYS called with spin_lock_irq on the timer, thus it must not* mess with irq.* We have a couple of messes to clean up here. First there is the case
850  it_interval = 0
855  If timer_try_to_cancel(timr) < 0 Then Return SPDX-License-Identifier: GPL-2.0
858  it_active = 0
859  it_requeue_pending = it_requeue_pending + 2 & ~REQUEUE_PENDING
861  it_overrun_last = 0
864  If Not seconds && Not nanoseconds Then Return 0
867  it_interval = vert a timespec64 to ktime_t format:
868  expires = vert a timespec64 to ktime_t format:
869  sigev_none = it_sigev_notify == her notification: meaningless
871  timer_arm(timr, expires, flags & The various flags for setting POSIX.1b interval timers:, sigev_none)
872  it_active = Not sigev_none
873  Return 0