函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_mq_debugfs_rq_show

函数原型:int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)

返回类型:int

参数:

类型参数名称
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  如果字符串比较恒等于0则seq_printf(m, "%u", op)
333  否则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  如果show_rqshow_rq(m, rq)
346  seq_puts(m, "}\n")
347  返回:0
调用者
名称描述
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.