Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarm_try_to_cancel - Tries to cancel an alarm timer*@alarm: ptr to alarm to be canceled* Returns 1 if the timer was canceled, 0 if it was not running,* and -1 if the callback was running

Proto:int alarm_try_to_cancel(struct alarm *alarm)

Type:int

Parameter:

TypeParameterName
struct alarm *alarm
416  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]
420  spin_lock_irqsave( & lock, flags)
421  ret = hrtimer_try_to_cancel - try to deactivate a timer*@timer: hrtimer to stop* Returns:* * 0 when the timer was not active* * 1 when the timer was active* * -1 when the timer is currently executing the callback function and* cannot be stopped
422  If ret >= 0 Then 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.
424  spin_unlock_irqrestore( & lock, flags)
426  trace_alarmtimer_cancel(alarm, gettime())
427  Return ret
Caller
NameDescribe
alarm_cancelalarm_cancel - Spins trying to cancel an alarm timer until it is done*@alarm: ptr to alarm to be canceled* Returns 1 if the timer was canceled, 0 if it was not active.