12.07.2015 Views

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18 July 2001 T10/1236-D Revision 203.5 Notation for procedures and functionsIn this standard, the model for functional interfaces between objects is the callable procedure. Such interfaces arespecified using the following notation:Where:[Result =] Procedure Name (IN ([input-1] [,input-2] …), OUT ([output-1] [,output-2] …))Result: A single value representing the outcome of the procedure or function.Procedure Name: A descriptive name for the function to be performed.Input-1, Input-2, …: A comma-separated list of names identifying caller-supplied input data objects.Output-1, Output-2, …: A comma-separated list of names identifying output data objects to be returned bythe procedure."[ …]": Brackets enclosing optional or conditional parameters and arguments.This notation allows data objects to be specified as inputs and outputs. The following is an example of a procedurespecification:Where:Found = Search (IN (Pattern, Item List), OUT ([Item Found]))Found = FlagFlag, which, if set, indicates that a matching item was located.Input Arguments:Pattern = … /* Definition of Pattern object */Object containing the search pattern.Item List = Item /* Definition of Item List as an array of NN Item objects*/Contains the items to be searched for a match.Output Arguments:Item Found = Item … /* Item located by the search procedure */This object is only returned if the search succeeds.dpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2) 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!