函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:common_hrtimer_arm

函数原型:static void common_hrtimer_arm(struct k_itimer *timr, ktime_t expires, bool absolute, bool sigev_none)

返回类型:void

参数:

类型参数名称
struct k_itimer *timr
ktime_texpires
boolabsolute
boolsigev_none
776  timer等于timer
779  mode等于如果absolute Time value is absolute否则 Time value is relative to now
789  如果it_clock恒等于The IDs of the various system clocks (for POSIX.1b interval timers):kclock等于如果absoluteclock_realtime否则clock_monotonic
792  hrtimer_init - initialize a timer to the given clock*@timer: the timer to be initialized*@clock_id: the clock to be used*@mode: The modes which are relevant for intitialization:* HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,*
793  function等于This function gets called when a POSIX.1b interval timer expires. It* is used as a callback from the kernel internal timer. The* run_timer_list code ALWAYS calls with interrupts on.* This code is for CLOCK_REALTIME* and CLOCK_MONOTONIC* timers.
795  如果非absoluteexpires等于Add two ktime values and do a safety check for overflow:
797  hrtimer_set_expires(timer, expires)
799  如果非sigev_nonehrtimer_start_expires(timer, Time value is absolute)