Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mc146818rtc.h Create Date:2022-07-28 07:28:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:All of these below must be called with interrupts off, preempt* disabled, etc.

Proto:static inline void lock_cmos(unsigned char reg)

Type:void

Parameter:

TypeParameterName
unsigned charreg
44  new = smp_processor_id() + 1 << 8 | reg
45  cycle
46  If cmos_lock Then
47  cpu_relax()
48  Continue
50  If __cmpxchg( & cmos_lock, 0, new, size of cmos_lock ) == 0 Then Return
Caller
NameDescribe
rtc_cmos_readRoutines for accessing the CMOS RAM/RTC.
rtc_cmos_write