函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hrtimer_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

函数原型:int hrtimer_cancel(struct hrtimer *timer)

返回类型:int

参数:

类型参数名称
struct hrtimer *timer
1277  循环
1278  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
1280  如果ret小于0则hrtimer_cancel_wait_running(timer)
1282 ret小于0循环
1283  返回:ret
调用者
名称描述
do_nanosleep
schedule_hrtimeout_range_clockschedule_hrtimeout_range_clock - sleep until timeout*@expires: timeout value (ktime_t)*@delta: slack in expires timeout (ktime_t)*@mode: timer mode*@clock_id: timer clock to be used
sched_clock_suspend
futex_wait
futex_lock_piUserspace tried a 0 -> TID atomic transition of the futex value* and failed. The kernel side here does the whole locking operation:* if there are waiters then it will block as a consequence of relying* on rt-mutexes, it does PI, etc
futex_wait_requeue_piex_wait_requeue_pi() - Wait on uaddr and take uaddr2*@uaddr: the futex we initially wait on (non-pi)*@flags: futex flags (FLAGS_SHARED, FLAGS_CLOCKRT, etc
perf_swevent_cancel_hrtimer
ioc_pd_free
bfq_exit_queue
rt_mutex_slowlockSlow path lock function:
blk_mq_poll_hybrid_sleep
timerfd_release