函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bsg_scsi_complete_rq

函数原型:static int bsg_scsi_complete_rq(struct request *rq, struct sg_io_v4 *hdr)

返回类型:int

参数:

类型参数名称
struct request *rq
struct sg_io_v4 *hdr
91  sreq等于scsi_req(rq)
92  ret等于0
97  [o] {SCSI: command completion status} 等于result按位与0xff
98  [o] 0 -> ok 等于host_byte(result)
99  [o] 0 -> ok 等于driver_byte(result)
100  [o] additional information 等于0
101  如果 [o] {SCSI: command completion status} [o] 0 -> ok [o] 0 -> ok [o] additional information 或等于something abnormal happened
103  [o] bytes of response actually written 等于0
105  如果sense_len [i], [*o] {SCSI: (auto)sense data}
106  len等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, [i] in bytes , sense_len)
109  如果copy_to_user(uptr64( [i], [*o] {SCSI: (auto)sense data} ), sense, len)则ret等于负EFAULT
111  否则 [o] bytes of response actually written 等于len
115  如果rq_data_dir(rq)恒等于generic data direction definitions [o] din_xfer_len - actual_din_xfer_len 等于 residual count
117  否则 [o] dout_xfer_len - actual_dout_xfer_len 等于 residual count
120  返回:ret