Function report |
Source Code:arch\x86\kernel\rtc.c |
Create Date:2022-07-28 07:47:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mach_get_cmos_time
Proto:void mach_get_cmos_time(struct timespec64 *now)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct timespec64 * | now |
65 | century = 0 |
72 | If Not pm_trace_rtc_valid() Then |
73 | seconds = nanoseconds = 0 |
74 | Return |
77 | spin_lock_irqsave( & rtc_lock, flags) |
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) |
104 | spin_unlock_irqrestore( & rtc_lock, flags) |
106 | If RTC operates in binary mode || Not (status & all time/date values are BCD if clear ) Then |
115 | If century Then |
122 | nanoseconds = 0 |
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 |