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

Name:common_hrtimer_arm

Proto:static void common_hrtimer_arm(struct k_itimer *timr, ktime_t expires, bool absolute, bool sigev_none)

Type:void

Parameter:

TypeParameterName
struct k_itimer *timr
ktime_texpires
boolabsolute
boolsigev_none
776  timer = timer
779  mode = If absolute Then Time value is absolute Else Time value is relative to now
789  If it_clock == The IDs of the various system clocks (for POSIX.1b interval timers): Then kclock = If absolute Then clock_realtime Else 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  If Not absolute Then expires = Add two ktime values and do a safety check for overflow:
797  hrtimer_set_expires(timer, expires)
799  If Not sigev_none Then hrtimer_start_expires(timer, Time value is absolute)