Function report | 
Source Code:block\scsi_ioctl.c | 
Create Date:2022-07-28 17:36:08 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:blk_fill_sghdr_rq
Proto:static int blk_fill_sghdr_rq(struct request_queue *q, struct request *rq, struct sg_io_hdr *hdr, fmode_t mode)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct request_queue * | q | |
| struct request * | rq | |
| struct sg_io_hdr * | hdr | |
| fmode_t | mode | 
| 223 | If copy_from_user(cmd, [i], [*i] points to command to perform , [i] SCSI command length ) Then Return -EFAULT | 
| 225 | If blk_verify_command(cmd, mode) Then Return -EPERM | 
| 234 | If Not timeout Then timeout = * sg stuff | 
| 236 | If Not timeout Then timeout = default timeout for SG_IO if none specified | 
| 238 | If timeout < BLK_MIN_SG_TIMEOUT Then timeout = BLK_MIN_SG_TIMEOUT | 
| 241 | Return 0 | 
| 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  |