Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int hrtimer_try_to_cancel(struct hrtimer *timer)

Type:int

Parameter:

TypeParameterName
struct hrtimer *timer
1155  ret = -1
1163  If Not A timer is active, when it is enqueued into the rbtree or the* callback function is running or it's in the state of being migrated* to another cpu.* It is important for this function to not return a false negative. Then Return 0
1166  base = lock_hrtimer_base(timer, & flags)
1168  If Not Helper function to check, whether the timer is running the callback* function Then ret = move hrtimer, called with base lock held
1171  Counterpart to lock_hrtimer_base above:
1173  Return ret
Caller
NameDescribe
task_contending
switched_to_dlWhen switching to -deadline, we may overload the rq, then* we try to push someone off, if possible.
hrtimer_cancelhrtimer_cancel - cancel a timer and wait for the handler to finish.*@timer: the timer to be cancelled* Returns:* 0 when the timer was not active* 1 when the timer was active
alarm_try_to_cancelalarm_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
common_hrtimer_try_to_cancel
do_setitimer
bc_shutdown
bfq_rq_enqueuedCalled when a new fs request (rq) is added to bfqq. Check if there's* something we should do about it.
__bfq_bfqd_reset_in_servicerns true if the in-service queue gets freed
io_kill_timeout
io_link_cancel_timeout
io_timeout_cancel
tcp_clear_xmit_timers