函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-stat.c Create Date:2022-07-27 18:48:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_stat_add_callback

函数原型:void blk_stat_add_callback(struct request_queue *q, struct blk_stat_callback *cb)

返回类型:void

参数:

类型参数名称
struct request_queue *q
struct blk_stat_callback *cb
142  遍历可用CPU(cpu)
145  cpu_stat等于per_cpu_ptr(@cpu_stat: Per-cpu statistics buckets., cpu)
146 bucket小于@buckets: Number of statistics buckets.循环blk_rq_stat_init( & cpu_stat[bucket])
150  加自旋锁
151  添加RCU链表项
152  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
153  自旋锁解锁
调用者
名称描述
wbt_init
blk_poll_stats_enableEnable polling stats and return whether they were already enabled.