函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alarmtimer_init - Initialize alarm timer code* This function initializes the alarm bases and registers* the posix clock ids.

函数原型:static int __init alarmtimer_init(void)

返回类型:int

参数:

889  alarmtimer_rtc_timer_init()
892  base_clockid等于The IDs of the various system clocks (for POSIX.1b interval timers):
893  gettime等于ktime_get_real - get the real (wall-) time in ktime_t format
894  base_clockid等于CLOCK_BOOTTIME
895  gettime等于取运行时间
896 i小于 Supported types end here 循环
897  timerqueue_init_head( & timerqueue)
898  spin_lock_init( & lock)
901  error等于alarmtimer_rtc_interface_setup()
902  如果error则返回:error
905  error等于use a macro to avoid include chaining to get THIS_MODULE( & alarmtimer_driver)
906  如果error则转到:out_if
909  返回:0
910  out_if :
911  alarmtimer_rtc_interface_remove()
912  返回:error