Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ktime_mono_to_any() - convert mononotic time to any other time*@tmono: time to convert.*@offs: which offset to use

Proto:ktime_t ktime_mono_to_any(ktime_t tmono, enum tk_offsets offs)

Type:ktime_t

Parameter:

TypeParameterName
ktime_ttmono
enum tk_offsetsoffs
838  offset = offsets[offs]
842  Do
843  seq = ad_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* read_seqcount_begin opens a read critical section of the given seqcount
844  tconv = Add two ktime_t variables. res = lhs + rhs: (tmono, * offset)
845  When ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount cycle
847  Return tconv
Caller
NameDescribe
ktime_mono_to_realktime_mono_to_real - Convert monotonic time to clock realtime