Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarm_start - Sets an absolute alarm to fire*@alarm: ptr to alarm to set*@start: time to run the alarm

Proto:void alarm_start(struct alarm *alarm, ktime_t start)

Type:void

Parameter:

TypeParameterName
struct alarm *alarm
ktime_tstart
367  base = struct alarm_base - Alarm timer bases*@lock: Lock for syncrhonized access to the base*@timerqueue: Timerqueue head managing the list of events*@gettime: Function to read the time correlating to the base*@base_clockid: clockid for the base[type]
370  spin_lock_irqsave( & lock, flags)
371  expires = start
372  alarmtimer_enqueue - Adds an alarm timer to an alarm_base timerqueue*@base: pointer to the base where the timer is being run*@alarm: pointer to alarm being enqueued.* Adds alarm to a alarm_base timerqueue* Must hold base->lock when calling.
373  hrtimer_start - (re)start an hrtimer*@timer: the timer to be added*@tim: expiry time*@mode: timer mode: absolute (HRTIMER_MODE_ABS) or* relative (HRTIMER_MODE_REL), and pinned (HRTIMER_MODE_PINNED);* softirq based mode is considered for debug purpose only!
374  spin_unlock_irqrestore( & lock, flags)
376  trace_alarmtimer_start(alarm, gettime())
Caller
NameDescribe
alarm_start_relativealarm_start_relative - Sets a relative alarm to fire*@alarm: ptr to alarm to set*@start: time relative to now to run the alarm