Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hctx_flags_show

Proto:static int hctx_flags_show(void *data, struct seq_file *m)

Type:int

Parameter:

TypeParameterName
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  If 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] Then seq_puts(m, alloc_policy_name[alloc_policy])
254  Else 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  Return 0