函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_stat_alloc_callback

函数原型:struct blk_stat_callback *blk_stat_alloc_callback(void (*timer_fn)(struct blk_stat_callback *), int (*bucket_fn)(const struct request *), unsigned int buckets, void *data)

返回类型:struct blk_stat_callback

参数:

类型参数名称
void (*timer_fn
int (*bucket_fn
unsigned intbuckets
void *data
109  cb等于开辟内存
110  如果非cb则返回:NULL
113  @stat: Array of statistics buckets.等于分配数组内存
115  如果非@stat: Array of statistics buckets.
116  释放内存
117  返回:NULL
119  @cpu_stat: Per-cpu statistics buckets.等于__alloc_percpu - allocate dynamic percpu area*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)* Equivalent to __alloc_percpu_gfp(size, align, %GFP_KERNEL).
121  如果非@cpu_stat: Per-cpu statistics buckets.
122  释放内存
123  释放内存
124  返回:NULL
127  timer_fn等于timer_fn
128  bucket_fn等于bucket_fn
129  @data: Private pointer for the user.等于data
130  @buckets: Number of statistics buckets.等于buckets
131  imer_setup - prepare a timer for first use*@timer: the timer in question*@callback: the function to call when timer expires*@flags: any TIMER_* flags* Regular timer initialization should use either DEFINE_TIMER() above,* or timer_setup()( & @timer: Timer for the next callback invocation., blk_stat_timer_fn, 0)
133  返回:cb
调用者
名称描述
wbt_init