函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\rtc.c Create Date:2022-07-27 08:47:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mach_get_cmos_time

函数原型:void mach_get_cmos_time(struct timespec64 *now)

返回类型:void

参数:

类型参数名称
struct timespec64 *now
65  century等于0
72  如果非pm_trace_rtc_valid()则
73  seconds 等于 nanoseconds 等于0
74  返回
77  spin_lock_irqsave( & rtc_lock, flags)
85 The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(gister details)按位与update-in-progress - set to "1" 244 microsecs before RTC goes off the bus,* reset after update (may take 1.984ms @ 32768Hz RefClock) is complete,* totalling to a max high interval of 2.228 ms.循环
86  cpu_relax()
88  sec等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(gister summary)
89  min等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_MINUTES)
90  hour等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_HOURS)
91  day等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_DAY_OF_MONTH)
92  mon等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_MONTH)
93  year等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_YEAR)
101  status等于The yet supported machines all access the RTC index register via* an ISA port access but the way to access the date register differs ...(RTC_CONTROL)
102  WARN_ON_ONCE(RTC operates in binary mode && (status & all time/date values are BCD if clear ))
104  spin_unlock_irqrestore( & rtc_lock, flags)
106  如果RTC operates in binary mode 或非status按位与all time/date values are BCD if clear 的值则
107  sec等于bcd2bin(sec)
108  min等于bcd2bin(min)
109  hour等于bcd2bin(hour)
110  day等于bcd2bin(day)
111  mon等于bcd2bin(mon)
112  year等于bcd2bin(year)
115  如果century
116  century等于bcd2bin(century)
117  year加等于century乘100
118  否则year加等于For two digit years assume time is always after that
121  seconds 等于mktime64(year, mon, day, hour, min, sec)
122  nanoseconds 等于0