函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
46 | retval等于0 |
48 | rtc_time64_to_tm(nowtime, & tm) |
49 | 如果非rtc_valid_tm( & tm)则 |
50 | retval等于mc146818_set_time( & tm) |
51 | 如果retval则printk(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) |
60 | 返回:retval |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |