Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:41:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
Proto:static void timekeeping_forward_now(struct timekeeper *tk)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct timekeeper * | tk |
| 702 | delta = clocksource_delta(cycle_now, cycle_last, mask) |
| 703 | cycle_last = cycle_now |
| 704 | cycle_last = cycle_now |
| 706 | xtime_nsec += delta * mult |
| 709 | xtime_nsec += arch_gettimeoffset() << shift |
| 712 | xtime_nsec += delta * mult |
| 715 | xtime_nsec += arch_gettimeoffset() << shift |
| 717 | tk_normalize_xtime(tk) |
| Name | Describe |
|---|---|
| do_settimeofday64 | do_settimeofday64 - Sets the time of day.*@ts: pointer to the timespec64 variable containing the new time* Sets the time of day to the new time and update NTP and notify hrtimers |
| timekeeping_inject_offset | mekeeping_inject_offset - Adds or subtracts from the current time.*@tv: pointer to the timespec variable containing the offset* Adds or subtracts an offset value from the current time. |
| change_clocksource | hange_clocksource - Swaps clocksources if a new one is available* Accumulates current time interval and initializes new clocksource |
| timekeeping_suspend |
| 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 |