User Guide

5-36 Ampex 1308911-02
Model No.
Running Head
dst_getparam libdd2 API Functions
u_int valid; /* Valid members */
int blksize; /* Current blocksize in bytes */
u_int dbglevel; /* Device driver debug message level */
u_int attributes; /* Bit mask of attributes */
} dst_param_st;
STRUCTURE MEMBERS
valid Bit mask that specifies which members to get information for on input,
and which members contain valid information on return. The following
definitions apply (see the
dstio.h file for details):
DST_ATTR_VALID
DST_BLK_VALID
DST_DBG_VALID
blksize Data block size in bytes. The block size does not include the two-byte
checksum, if any.
dbglevel Bit mask representing the current tape device driver debug level. Zero
unless tape device driver debug messages have been enabled; see the
dst_setparam() manual page for details.
attributes Bit mask of device special file interface parameter settings (see the
Software Installation Manual for your host system for details):
DST_NO_REWIND - Do not rewind on close device.
DST_NO_FM - Do not write filemarks on close.
DST_NO_RESERVE - Do not reserve unit for exclusive use.
DST_NO_FLUSH - Do not flush tape drive buffer.
DST_NO_OPN_CMD - Do not issue any commands on open.
DST_SBLK_SIZE - Force user defined block size on open.
DST_REWIND_OPN - Rewind on open to BOP.
DST_SPC_FWD - Space forward on close, if not at end of file (EOF).
DST_APPEND_ONLY - Allow writing at end of data (EOD) only.
DST_BYTE_SWAP - Swap bytes of all data transferred.
DST_DEF_POS_OPN - If position is undefined on open, set to BOT.
DST_NO_REFORMAT - No re-formatting of formatted tapes.
DST_SYNC_WRITE - Flush tape drive buffer after every write.
DST_ZERO_ON_FM - Report zero bytes for read after filemark (FM).
DST_ZERO_ON_EW - Report zero bytes for write after EW.
DST_IGN_FM - Ignore FM on first read after open.
DST_OPEN_RDONLY - Open for read only.
DST_OBSOLETE - Obsolete; used to be DST_WRITTEN.
DST_WRITE_PROT - Cartridge is write protected.
DST_OBSOLETE1 - Obsolete; used to be Disable Checksums.
DST_OBSOLETE2 - Obsolete; used to be High Density Drive.
DST_OBSOLETE3 - Obsolete; used to be Set EOR Beyond Load Bit.