Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarmtimer_fired - Handles alarm hrtimer being fired

Proto:static enum hrtimer_restart alarmtimer_fired(struct hrtimer *timer)

Type:enum hrtimer_restart

Parameter:

TypeParameterName
struct hrtimer *timer
208  alarm = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(timer, structalarm, timer)
209  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]
211  ret = Timer is not restarted
212  restart = ALARMTIMER_NORESTART
214  spin_lock_irqsave( & lock, flags)
215  alarmtimer_dequeue - Removes an alarm timer from an alarm_base timerqueue*@base: pointer to the base where the timer is running*@alarm: pointer to alarm being removed* Removes alarm to a alarm_base timerqueue* Must hold base->lock when calling.
216  spin_unlock_irqrestore( & lock, flags)
218  If function Then restart = function(alarm, gettime())
221  spin_lock_irqsave( & lock, flags)
222  If restart != ALARMTIMER_NORESTART Then
223  hrtimer_set_expires( & timer, expires)
224  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.
225  ret = Timer must be restarted
227  spin_unlock_irqrestore( & lock, flags)
229  trace_alarmtimer_fired(alarm, gettime())
230  Return ret