Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ktime_get_coarse_with_offset

Proto:ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs)

Type:ktime_t

Parameter:

TypeParameterName
enum tk_offsetsoffs
813  tk = timekeeper
815  offset = offsets[offs]
818  WARN_ON(lag for if timekeeping is suspended )
820  Do
821  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
822  base = Add two ktime_t variables. res = lhs + rhs: (base, * offset)
823  nsecs = xtime_nsec >> shift
825  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
827  Return Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
Caller
NameDescribe
ktime_get_coarse_real
ktime_get_coarse_boottime
ktime_get_coarse_clocktai