Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\ntp.c Create Date:2022-07-28 10:43:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sync_cmos_clock

Proto:static bool sync_cmos_clock(void)

Type:bool

Parameter:Nothing

570  rc = -EPROTO
571  target_nsec = NSEC_PER_SEC / 2
573  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_GENERIC_CMOS_UPDATE) Then Return false
576  If no_cmos Then Return false
587  ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
588  If Determine if we can call to driver to set the time Then
589  If Indicates if there is an offset between the system clock and the hardware* clock/persistent clock/rtc. Then seconds -= minutes west of Greenwich * 60
591  rc = update_persistent_clock64(adjust)
596  If rc == -ENODEV Then
597  no_cmos = true
598  Return false
602  sched_sync_hw_clock(now, target_nsec, rc)
603  Return true
Caller
NameDescribe
sync_hw_clock