函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int mach_set_rtc_mmss(const struct timespec64 *now)

返回类型:int

参数:

类型参数名称
const struct timespec64 *now
44  nowtime等于 seconds
46  retval等于0
48  rtc_time64_to_tm(nowtime, & tm)
49  如果非rtc_valid_tm( & tm)则
50  retval等于mc146818_set_time( & tm)
51  如果retvalprintk(r conditions "%s: RTC write failed with error %d\n", __func__, retval)
54  否则
55  printk(r conditions "%s: Invalid RTC value: write of %llx to RTC failed\n", __func__, nowtime)
58  retval等于负EINVAL
60  返回:retval