Function report |
Source Code:block\bsg.c |
Create Date:2022-07-28 17:37:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bsg_scsi_fill_hdr
Proto:static int bsg_scsi_fill_hdr(struct request *rq, struct sg_io_v4 *hdr, fmode_t mode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request * | rq | |
struct sg_io_v4 * | hdr | |
fmode_t | mode |
71 | pr_warn_once("BIDI support in bsg has been removed.\n") |
72 | Return -EOPNOTSUPP |
75 | cmd_len = [i] in bytes |
76 | If cmd_len > BLK_MAX_CDB Then |
82 | If copy_from_user(cmd, uptr64( [i], [*i] {SCSI: cdb} ), cmd_len) Then Return -EFAULT |
84 | If blk_verify_command(cmd, mode) Then Return -EPERM |
86 | Return 0 |
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 |