Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bsg-lib.c Create Date:2022-07-28 17:38:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_teardown_job - routine to teardown a bsg job*@kref: kref inside bsg_job that is to be torn down

Proto:static void bsg_teardown_job(struct kref *kref)

Type:void

Parameter:

TypeParameterName
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  kfree(sg_list)
156  kfree(sg_list)
158  blk_mq_end_request(rq, BLK_STS_OK)