函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Recomputes cpu_base::*next_timer and returns the earliest expires_next but* does not set cpu_base::*expires_next, that is done by hrtimer_reprogram

函数原型:static ktime_t __hrtimer_get_next_event(struct hrtimer_cpu_base *cpu_base, unsigned int active_mask)

返回类型:ktime_t

参数:

类型参数名称
struct hrtimer_cpu_base *cpu_base
unsigned intactive_mask
570  struct hrtimer * next_timer = NULL
571  expires_next等于KTIME_MAX
573  如果非softirq_activatedactive_mask按位与HRTIMER_ACTIVE_SOFT
574  active等于active_bases按位与HRTIMER_ACTIVE_SOFT
575  softirq_next_timer = NULL
576  expires_next等于__hrtimer_next_event_base(cpu_base, NULL, active, KTIME_MAX)
579  next_timer等于softirq_next_timer
582  如果active_mask按位与HRTIMER_ACTIVE_HARD
583  active等于active_bases按位与HRTIMER_ACTIVE_HARD
584  next_timer等于next_timer
585  expires_next等于__hrtimer_next_event_base(cpu_base, NULL, active, expires_next)
589  返回:expires_next
调用者
名称描述
hrtimer_force_reprogramReprogram the event source with checking both queues for the* next event* Called with interrupts disabled and base->lock held
hrtimer_update_softirq_timer