Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_stat_add_callback

Proto:void blk_stat_add_callback(struct request_queue *q, struct blk_stat_callback *cb)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
struct blk_stat_callback *cb
142  for_each_possible_cpu(cpu)
145  cpu_stat = per_cpu_ptr(@cpu_stat: Per-cpu statistics buckets., cpu)
146  When bucket < @buckets: Number of statistics buckets. cycle blk_rq_stat_init( & cpu_stat[bucket])
150  spin_lock( & lock)
151  list_add_tail_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head
152  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
153  spin_unlock( & lock)
Caller
NameDescribe
wbt_init
blk_poll_stats_enableEnable polling stats and return whether they were already enabled.