Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| const struct timespec64 * | now |
| 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) |
| 60 | Return retval |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |