MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Data Structures for Drivers                      scsiaddress(9S)



NAME
     scsiaddress - SCSI address structure

SYNOPSIS
     #include 


INTERFACE LEVEL
     Solaris architecture specific (Solaris DI)

DESCRIPTION
     A scsiaddress structure defines the  addressing  components
     for  a  SCSI target device. The address of the target device
     is separated into two components: target number and  logical
     unit  number.  The  two  addressing  components  are used to
     uniquely identify any type of  SCSI  device;  however,  most
     devices  can  be  addressed with the target component of the
     address.


     In the case where only  the  target  component  is  used  to
     address the device, the logical unit should be set to  0. If
     the SCSI target device supports logical units, then the  HBA
     must  interpret  the  logical units field of the data struc-
     ture.


     The pktaddress member of a scsipkt(9S) is  initialized  by
     scsiinitpkt(9F).

STRUCTURE MEMBERS
       scsihbatrant   *ahbatran;  /* Transport vectors for the SCSI bus */
       ushortt          atarget;     /* SCSI target id */
       uchart           alun;        /* SCSI logical unit */



     ahbatran is a pointer to the controlling  HBA's  transport
     vector structure. The SCSA interface uses this field to pass
     any transport requests from the SCSI target  device  drivers
     to the HBA driver.


     atarget is the target component of the SCSI address.


     alun is the logical unit component of the SCSI address. The
     logical  unit  is  used to further distinguish a SCSI target
     device that supports multiple logical units  from  one  that
     does  not. The makecom(9F) family of functions use the alun
     field to set the logical unit field in  the  SCSI  CDB,  for
     compatibility with SCSI-1.



SunOS 5.11          Last change: 30 Aug 1995                    1






Data Structures for Drivers                      scsiaddress(9S)



SEE ALSO
     makecom(9F),      scsiinitpkt(9F),      scsihbatran(9S),
     scsipkt(9S)


     Writing Device Drivers

















































SunOS 5.11          Last change: 30 Aug 1995                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™