函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set a POSIX.1b interval timer.

函数原型:int common_timer_set(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting)

返回类型:int

参数:

类型参数名称
struct k_itimer *timr
intflags
struct itimerspec64 *new_setting
struct itimerspec64 *old_setting
842  kc等于kclock
846  如果old_settingGet 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  如果timer_try_to_cancel(timr)小于0则返回: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  如果非 seconds 且非 nanoseconds 则返回: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等于非sigev_none
873  返回:0