函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Functions related to boot-time initialization:

函数原型:int hrtimers_prepare_cpu(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
1990  cpu_base等于per_cpu(The timer bases:* There are more clockids than hrtimer bases. Thus, we index* into the timer bases by the hrtimer_base_type enum. When trying* to reach a base using a clockid, hrtimer_clockid_to_base(), cpu)
1993 i小于HRTIMER_MAX_CLOCK_BASES循环
1994  cpu_base等于cpu_base
1995  timerqueue_init_head( & active)
1998  cpu等于cpu
1999  active_bases等于0
2000  hres_active等于0
2001  hang_detected等于0
2002  next_timer = NULL
2003  softirq_next_timer = NULL
2004  expires_next等于KTIME_MAX
2005  softirq_expires_next等于KTIME_MAX
2006  hrtimer_cpu_base_init_expiry_lock(cpu_base)
2007  返回:0
调用者
名称描述
hrtimers_init初始化高精度定时器