Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\rtc.c Create Date:2022-07-28 07:47:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:In order to set the CMOS clock precisely, set_rtc_mmss has to be* called 500 ms after the second nowtime has started, because when* nowtime is written into the registers of the CMOS clock, it will* jump to the next second precisely 500 ms later

Proto:int mach_set_rtc_mmss(const struct timespec64 *now)

Type:int

Parameter:

TypeParameterName
const struct timespec64 *now
44  nowtime = seconds
46  retval = 0
48  rtc_time64_to_tm(nowtime, & tm)
49  If Not rtc_valid_tm( & tm) Then
50  retval = mc146818_set_time( & tm)
51  If retval Then printk(r conditions "%s: RTC write failed with error %d\n", __func__, retval)
54  Else
55  printk(r conditions "%s: Invalid RTC value: write of %llx to RTC failed\n", __func__, nowtime)
58  retval = -EINVAL
60  Return retval