Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarmtimer_init - Initialize alarm timer code* This function initializes the alarm bases and registers* the posix clock ids.

Proto:static int __init alarmtimer_init(void)

Type:int

Parameter:Nothing

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 = ktime_get_boottime - Returns monotonic time since boot in ktime_t format* This is similar to CLOCK_MONTONIC/ktime_get, but also includes the* time spent in suspend.
896  When i < Supported types end here cycle
897  timerqueue_init_head( & timerqueue)
898  Process spin lock initialization( & lock)
901  error = alarmtimer_rtc_interface_setup()
902  If error Then Return error
905  error = use a macro to avoid include chaining to get THIS_MODULE( & alarmtimer_driver)
906  If error Then Go to out_if
909  Return 0
910  out_if :
911  alarmtimer_rtc_interface_remove()
912  Return error