Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man9f/scsi_setup_cdb.9f
Real path: /usr/share/man/man9f/scsi_setup_cdb.9f
Zurück
'\" te .\" Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. .TH scsi_setup_cdb 9F "16 Jan 2006" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME scsi_setup_cdb \- setup SCSI command descriptor block (CDB) .SH SYNOPSIS .LP .nf \fBint\fR \fBscsi_setup_cdb\fR(\fBunion scsi_cdb\fR \fI*cdbp\fR, \fBuchar_t\fR \fIcmd\fR, \fBuint_t\fR \fIaddr\fR, \fBuint_t\fR \fIcnt\fR, \fBuint_t\fR \fIothr_cdb_data\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris DDI specific (Solaris DDI). .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIcdbp\fR\fR .ad .RS 17n .rt Pointer to command descriptor block. .RE .sp .ne 2 .mk .na \fB\fIcmd\fR\fR .ad .RS 17n .rt The first byte of the \fBSCSI\fR group 0, 1, 2, 4, or 5 \fBCDB\fR. .RE .sp .ne 2 .mk .na \fB\fIaddr\fR\fR .ad .RS 17n .rt Pointer to the location of the data. .RE .sp .ne 2 .mk .na \fB\fIcnt\fR\fR .ad .RS 17n .rt Data transfer length in units defined by the SCSI device type. For sequential devices \fIcnt\fR is the number of bytes. For block devices, \fIcnt\fR is the number of blocks. .RE .sp .ne 2 .mk .na \fB\fIothr_cdb_data\fR\fR .ad .RS 17n .rt Additional \fBCDB\fR data. .RE .SH DESCRIPTION .sp .LP The \fBscsi_setup_cdb()\fR function initializes a group 0, 1, 2, 4, or 5 type of command descriptor block pointed to by \fIcdbp\fR using \fIcmd\fR, \fIaddr\fR, \fIcnt\fR, \fIothr_cdb_data\fR. .sp .LP \fIaddr\fR should be set to 0 for commands having no addressing information (for example, group 0 READ command for sequential access devices). \fIothr_cdb_data\fR should be additional \fBCDB\fR data for Group 4 commands; otherwise, it should be set to 0. .sp .LP The \fBscsi_setup_cdb()\fR function does not set the \fBLUN\fR bits in \fBCDB\fR[1] as the \fBmakecom\fR(9F) functions do. Also, the fixed bit for sequential access device commands is not set. .SH RETURN VALUES .sp .LP The \fBscsi_setup_cdb()\fR function returns: .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 5n .rt Upon success. .RE .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 5n .rt Upon failure. .RE .SH CONTEXT .sp .LP These functions can be called from a user, interrupt, or kernel context. .SH SEE ALSO .sp .LP \fBmakecom\fR(9F), \fBscsi_pkt\fR(9S) .sp .LP \fIWriting Device Drivers in Oracle Solaris 11.4\fR .sp .LP \fIAmerican National Standard Small Computer System Interface-2 (SCSI-2)\fR .sp .LP \fIAmerican National Standard SCSI-3 Primary Commands (SPC)\fR