Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ktime_get_with_offset

Proto:ktime_t ktime_get_with_offset(enum tk_offsets offs)

Type:ktime_t

Parameter:

TypeParameterName
enum tk_offsetsoffs
792  tk = timekeeper
794  offset = offsets[offs]
797  WARN_ON(lag for if timekeeping is suspended )
799  Do
800  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
801  base = Add two ktime_t variables. res = lhs + rhs: (base, * offset)
802  nsecs = timekeeping_get_ns( & tkr_mono)
804  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
806  Return Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
Caller
NameDescribe
ktime_get_realktime_get_real - get the real (wall-) time in ktime_t format
ktime_get_boottimektime_get_boottime - Returns monotonic time since boot in ktime_t format* This is similar to CLOCK_MONTONIC/ktime_get, but also includes the* time spent in suspend.
ktime_get_clocktaiktime_get_clocktai - Returns the TAI time of day in ktime_t format