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:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__blk_mq_debugfs_rq_show

Proto:int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
struct request *rq
326  mq_ops = mq_ops
327  op = req_op(rq)
328  op_str = lk_op_str - Return string XXX in the REQ_OP_XXX.*@op: REQ_OP_XXX.* Description: Centralize block layer function to convert REQ_OP_XXX into* string format. Useful in the debugging and tracing bio or request. For
330  seq_printf(m, "%p {.op=", rq)
331  If strcmp(op_str, "UNKNOWN") == 0 Then seq_printf(m, "%u", op)
333  Else seq_printf(m, "%s", op_str)
335  seq_puts(m, ", .cmd_flags=")
336  blk_flags_show(m, op and common flags & ~REQ_OP_MASK, cmd_flag_name, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(cmd_flag_name))
338  seq_puts(m, ", .rq_flags=")
339  blk_flags_show(m, (__forceunsignedint)rq_flags, rqf_name, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(rqf_name))
341  seq_printf(m, ", .state=%s", blk_mq_rq_state_name(lk_mq_rq_state() - read the current MQ_RQ_* state of a request*@rq: target request.))
342  seq_printf(m, ", .tag=%d, .internal_tag=%d", tag, internal_tag)
344  If show_rq Then show_rq(m, rq)
346  seq_puts(m, "}\n")
347  Return 0
Caller
NameDescribe
blk_mq_debugfs_rq_show
hctx_show_busy_rqNote: the state of a request may change while this function is in progress,* e.g. due to a concurrent blk_mq_finish_request() call. Returns true to* keep iterating requests.