IOCTL_SCSI_EXECUTE_IN [X][X] 0x001b0012 IOCTL_SCSI_EXECUTE_OUT [X][X] 0x001b0013 IOCTL_SCSI_EXECUTE_NONE [X][X] 0x001b0014 IOCTL_SERIAL_SET_BREAK_OFF [X] [MS-RDPESP]0x001b0018 IOCTL_SERIAL_IMMEDIATE_CHAR [X] [MS-RDPESP]...
of scsi_execute, also need to check whether sshdr is valid. Signed-off-by: zhengbin <zhengbi...@huawei.com> --- drivers/scsi/sr_ioctl.c | 6 +++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/sr_ioctl.c b/drivers/scsi/sr_ioctl.c index ffcf902..7672fc1 100644...
660struct scsi_device *sdp = scsi_disk(disk)->device; 661void __user *p = (void __user *)arg; 662int error; 663 664SCSI_LOG_IOCTL(1, printk("sd_ioctl: disk=%s, cmd=0x%x/n", 665disk->disk_name, cmd)); 666 667/* 668* If we are in the middle of error recovery, don't ...
clear all current commands, and return to an initial state. This operation is used by system management routines to force a SCSI controller to release a competing SCSI initiator's reservation in a multi-initiator environment.
(if there is one) to a selected device, clear the queue of any pending commands, and place the device queue in a halted state. The command causes the attached SCSI adapter to execute a SCSI abort message to the selected target device. This command is used by an upper-level SCSI device...
>> blk_execute_rq(q, disk, rq, 0); > > Since sg_scsi_ioctl() is used to implement SCSI_IOCTL_SEND_COMMAND, does > this patch change the ABI between user space and kernel in a > backwards-incompatible way? > Not really. We do change the return code, but sg_scsi_ioctl() alread...
meta_len, offset_in_page(meta));if(ret !=meta_len) { ret= -ENOMEM;gotoout_free_meta; } } } submit: blk_execute_rq(req->q, disk, req,0);if(nvme_req(req)->flags &NVME_REQ_CANCELLED) ret= -EINTR;elseret= nvme_req(req)->status;if(result)*result = le32_to_cpu(nvme_req(...
+ from scsi_ioctl_send_command() for default case... */ + if (scsi_execute_req(scsidev, scsi_cmd, data_dir, argbuf, argsize, + &sshdr, (10*HZ), 0)) { + if (sshdr.sense_key != 0) { + printk(KERN_INFO "Err Sense %2x %2x %2x %2x\n", ...
The target-mode device driver builds the appropriate command block to execute this operation, including ORing in the 3-bit logical unit number (LUN) identifier in the SCSI command based on the configuration information for this device instance. The returnederrnoglobal variable is generated and thest...
Theargparameter to theSCIOEVENToperation should be set to the address of ansc_event_structstructure, which is in the/usr/include/sys/scsi.hfile. If this is a target-mode instance, theSCIOSTARTTGToperation was used to open the device session; the caller then fills in theIDfield with the ...