Function report | 
Source Code:kernel\time\ntp.c | 
Create Date:2022-07-28 10:43:32 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:sched_sync_hw_clock
Proto:static void sched_sync_hw_clock(struct timespec64 now, unsigned long target_nsec, bool fail)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct timespec64 | now | |
| unsigned long | target_nsec | |
| bool | fail | 
| 509 | Else | 
| 516 | seconds = 0 | 
| 520 | nanoseconds = target_nsec - nanoseconds | 
| 521 | If nanoseconds <= 0 Then nanoseconds += NSEC_PER_SEC | 
| 523 | If nanoseconds >= NSEC_PER_SEC Then | 
| 524 | seconds ++ | 
| 525 | nanoseconds -= NSEC_PER_SEC | 
| Name | Describe | 
|---|---|
| sync_rtc_clock | |
| sync_cmos_clock | 
| 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  |