Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sfb(D4I) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       sfb(D4I)                                                    sfb(D4I)


       NAME
             sfb - function block structure

       SYNOPSIS
             #include <sys/sdi.h>

       DESCRIPTION
             The function block, sfb, serves as a mechanism for sending
             control information from a target driver to the host adapter
             or to a PDI device.  (The scb(D4I) is sent to the device; the
             sfb is generally sent to all other receiving entities.)

             An sfb is sent to the device when an abort or reset message is
             required.  (Abort and reset messages have a different protocol
             than do the commands sent to the PDI device with a CDB.)

       USAGE
          Structure Members
             The sfb structure is defined as follows:

                         unsigned long   sf_comp_code;   /* Current job status */
                         void            (*sf_int)();    /* Target driver intr handler */
                         struct scsi_ad  sf_dev;         /* SCSI device address */
                         unsigned long   sf_func;        /* Function to be performed */
                         int             sf_wd           /* Target driver word */

             The sf_comp_code is identical to the sc_comp_code in the  scb,
             and it takes on the same values.

             The sf_int and sf_dev entries are used the same way as in  the
             scb  structure.  The only field which the host adapter changes
             in the sfb structure is sf_comp_code.

             The sf_func member indicates the operation to be performed:

                Send an abort message to the addressed logical unit.

                Flush a logical queue unit.

                The target driver is not to perform an operation.

                Send a bus device reset message to the
                addressed controller.





                           Copyright 1994 Novell, Inc.               Page 1













      sfb(D4I)                                                    sfb(D4I)


               Permit normal job flow to a logical unit.
               This command  is  used  after  SFB_SUSPEND,  but  no  error
               results if SFB_RESUME is called first.

               Suspend a queue.
               This indicates that normal job flow to the logical unit  is
               halted until the queue is resumed by the target driver.

      REFERENCES
            scb(D4I)






































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026