函数逻辑报告 |
Source Code:block\bsg-lib.c |
Create Date:2022-07-27 19:13:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:bsg_transport_complete_rq
函数原型:static int bsg_transport_complete_rq(struct request *rq, struct sg_io_v4 *hdr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request * | rq | |
| struct sg_io_v4 * | hdr |
| 78 | 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. |
| 79 | ret等于0 |
| 85 | [o] {SCSI: command completion status} 等于result按位与0xff |
| 86 | [o] 0 -> ok 等于host_byte(result) |
| 87 | [o] 0 -> ok 等于driver_byte(result) |
| 88 | [o] additional information 等于0 |
| 89 | 如果 [o] {SCSI: command completion status} 或 [o] 0 -> ok 或 [o] 0 -> ok 则 [o] additional information 或等于something abnormal happened |
| 93 | 如果result小于0则 |
| 100 | len等于两数取小( [i] in bytes , reply_len) |
| 102 | 如果copy_to_user(uptr64( [i], [*o] {SCSI: (auto)sense data} ), reply, len)则ret等于负EFAULT |
| 111 | 如果 BIDI support 则 |
| 112 | rsp_len等于payload_len |
| 118 | 否则 |
| 122 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |