函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alled right after the request is allocated for the request_queue

函数原型:static int bsg_init_rq(struct blk_mq_tag_set *set, struct request *req, unsigned int hctx_idx, unsigned int numa_node)

返回类型:int

参数:

类型参数名称
struct blk_mq_tag_set *set
struct request *req
unsigned inthctx_idx
unsigned intnuma_node
293  job等于lk_mq_rq_to_pdu - cast a request to a PDU*@rq: the request to be casted* Return: pointer to the PDU* Driver command data is immediately after the request. So add request to get* the PDU.
295  reply等于分配内存并置零
296  如果非reply则返回:负ENOMEM
298  返回:0