函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alarmtimer_fired - Handles alarm hrtimer being fired

函数原型:static enum hrtimer_restart alarmtimer_fired(struct hrtimer *timer)

返回类型:enum hrtimer_restart

参数:

类型参数名称
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  如果functionrestart等于function(alarm, gettime())
221  spin_lock_irqsave( & lock, flags)
222  如果restart不等于ALARMTIMER_NORESTART
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  返回:ret