函数逻辑报告 |
Source Code:block\bsg.c |
Create Date:2022-07-27 19:12:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
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 |
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 |
115 | 如果rq_data_dir(rq)恒等于generic data direction definitions 则 [o] din_xfer_len - actual_din_xfer_len 等于 residual count |
120 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |