Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scsi_mode_select(9) [suse man page]

SCSI_MODE_SELECT(9)						  SCSI mid layer					       SCSI_MODE_SELECT(9)

NAME
scsi_mode_select - issue a mode select SYNOPSIS
int scsi_mode_select(struct scsi_device * sdev, int pf, int sp, int modepage, unsigned char * buffer, int len, int timeout, int retries, struct scsi_mode_data * data, struct scsi_sense_hdr * sshdr); ARGUMENTS
sdev SCSI device to be queried pf Page format bit (1 == standard, 0 == vendor specific) sp Save page bit (0 == don't save, 1 == save) modepage mode page being requested buffer request buffer (may not be smaller than eight bytes) len length of request buffer. timeout command timeout retries number of retries before failing data returns a structure abstracting the mode header data sshdr place to put sense data (or NULL if no sense to be collected). must be SCSI_SENSE_BUFFERSIZE big. DESCRIPTION
Returns zero if successful; negative error number or scsi status on error AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 SCSI_MODE_SELECT(9)

Check Out this Related Man Page

scsi_arq_status(9S)					    Data Structures for Drivers 				       scsi_arq_status(9S)

NAME
scsi_arq_status - SCSI auto request sense structure SYNOPSIS
#include <sys/scsi/scsi.h> INTERFACE LEVEL
Solaris DDI specific (Solaris DDI) DESCRIPTION
When auto request sense has been enabled using scsi_ifsetcap(9F) and the "auto-rqsense" capability, the target driver must allocate a sta- tus area in the SCSI packet structure for the auto request sense structure (see scsi_pkt(9S)). In the event of a check condition, the transport layer automatically executes a request sense command. This check ensures that the request sense information does not get lost. The auto request sense structure supplies the SCSI status of the original command, the transport information pertaining to the request sense command, and the request sense data. STRUCTURE MEMBERS
struct scsi_status sts_status; /* SCSI status */ struct scsi_status sts_rqpkt_status; /* SCSI status of request sense cmd */ uchar_t sts_rqpkt_reason; /* reason completion */ uchar_t sts_rqpkt_resid; /* residue */ uint_t sts_rqpkt_state; /* state of command */ uint_t sts_rqpkt_statistics;/* statistics */ struct scsi_extended_sense sts_sensedata; /* actual sense data */ sts_status is the SCSI status of the original command. If the status indicates a check condition, the transport layer might have performed an auto request sense command. sts_rqpkt_status is the SCSI status of the request sense command. sts_rqpkt_reason is the completion reason of the request sense command. If the reason is not CMD_CMPLT, then the request sense command did not complete normally. sts_rqpkt_resid is the residual count of the data transfer and indicates the number of data bytes that have not been transferred. The auto request sense command requests SENSE_LENGTH bytes. sts_rqpkt_state has bit positions representing the five most important statuses that a SCSI command can go obtain. sts_rqpkt_statistics maintains transport-related statistics of the request sense command. sts_sensedata contains the actual sense data if the request sense command completed normally. SEE ALSO
scsi_ifgetcap(9F), scsi_init_pkt(9F), scsi_extended_sense(9S), scsi_pkt(9S) Writing Device Drivers SunOS 5.11 30 Sep 1996 scsi_arq_status(9S)
Man Page

4 More Discussions You Might Find Interesting

1. Solaris

Unable to install Sol10 on V245, exiting to shell.

Hi there, OK so I am super-green, but I have a problem I am hoping someone can help me with. I have a V245 that I am unable to install Solaris 10 (10/09) onto as during the initial install process, the UI pops up for region selection, but then as I enter my region, identify the system, up comes... (21 Replies)
Discussion started by: wallrunn3r
21 Replies

2. Solaris

Different disk size on different controllers

Hi folks, I just recently build myself a NAS with Oracle Solaris 11 Express. MOBO: Asus M4N68T-M LE V2 nForce 630a AM3 PCI-e Controller: 2x Exsys EX-3503 with Sil3132 Chipset (latest FW) HDD: 7x 2000GB Samsung EcoGreen F4 HD204UI 32MB 3.5" (latest FW) OS: SunOS zaruba 5.11 snv_151a i86pc... (4 Replies)
Discussion started by: Garter
4 Replies

3. Solaris

cannot label 'c0t5000CCA0251EF65Cd0': EFI labeled devices are not supported on root pools

I'm running Solaris 10 u9. I just applied the April quarterly patch cluster. I'm trying to mirror the boot disk which is using zfs, something I've done before w/o problems prior to the patch cluster install. disk=c0t5000CCA0251D9514d0;mirrordisk=c0t5000CCA0251EF65Cd0;echo $disk $mirrordisk... (7 Replies)
Discussion started by: TKD
7 Replies

4. Solaris

Missing ASM Disks in Solaris 11.3 LDOM

Hi Guys, Just a quick question hopefully someone will have seen this before and will be able to enlighten me. I have been doing some Infrastructure Verification Testing and one of the tests was booting the primary domain from alternate disks, this all went well - however on restarting one of... (7 Replies)
Discussion started by: gull04
7 Replies