函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sg_teardown_job - routine to teardown a bsg job*@kref: kref inside bsg_job that is to be torn down

函数原型:static void bsg_teardown_job(struct kref *kref)

返回类型:void

参数:

类型参数名称
struct kref *kref
150  job等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kref, structbsg_job, kref)
151  rq等于lk_mq_rq_from_pdu - cast a PDU to a request*@pdu: the PDU (Protocol Data Unit) to be casted* Return: request* Driver command data is immediately after the request. So subtract request* size to get back to the original request.
153  put_device(dev)
155  释放内存
156  释放内存
158  blk_mq_end_request(rq, BLK_STS_OK)