Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-iocost.c Create Date:2022-07-28 17:47:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ake a snapshot of the current [v]time and vrate

Proto:static void ioc_now(struct ioc *ioc, struct ioc_now *now)

Type:void

Parameter:

TypeParameterName
struct ioc *ioc
struct ioc_now *now
857  now_ns = ktime_get()
858  now = ktime_to_us(now_ns)
859  vrate = atomic64_read( & vtime_rate)
869  Do
870  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
871  vnow = vtime starttime + (now - wallclock starttime ) * vrate
873  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
Caller
NameDescribe
iocg_activate
iocg_waitq_timer_fn
iocg_delay_timer_fn
ioc_timer_fn
ioc_rqos_merge
ioc_pd_init