Function report |
Source Code:block\scsi_ioctl.c |
Create Date:2022-07-28 17:36:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_complete_sghdr_rq
Proto:static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, struct bio *bio)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request * | rq | |
| struct sg_io_hdr * | hdr | |
| struct bio * | bio |
| 248 | ret = 0 |
| 253 | [o] scsi status = result & 0xff |
| 258 | [o] auxiliary information = 0 |
| 259 | If [o] shifted, masked scsi status || [o] errors from host adapter || [o] errors from software driver Then [o] auxiliary information |= something abnormal happened |
| 264 | If sense_len && [i], [*o] points to sense_buffer memory Then |
| 265 | len = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value((unsignedint) [i] max length to write to sbp , sense_len) |
| 267 | If Not copy_to_user( [i], [*o] points to sense_buffer memory , sense, len) Then [o] byte count actually written to sbp = len |
| 277 | Return ret |
| Name | Describe |
|---|---|
| sg_io |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |