函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hctx_flags_show

函数原型:static int hctx_flags_show(void *data, struct seq_file *m)

返回类型:int

参数:

类型参数名称
void *data
struct seq_file *m
247  hctx等于data
248  alloc_policy等于BLK_MQ_FLAG_TO_ALLOC_POLICY(@flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. )
250  seq_puts(m, "alloc_policy=")
251  如果alloc_policy小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(alloc_policy_name)且alloc_policy_name[alloc_policy]则seq_puts(m, alloc_policy_name[alloc_policy])
254  否则seq_printf(m, "%d", alloc_policy)
256  seq_puts(m, " ")
257  blk_flags_show(m, @flags: BLK_MQ_F_* flags. Defines the behaviour of the queue. ^ BLK_ALLOC_POLICY_TO_MQ_FLAG(alloc_policy), hctx_flag_name, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(hctx_flag_name))
260  seq_puts(m, "\n")
261  返回:0