User Guide

5-30 Ampex 1308911-02
Model No.
Running Head
dst_getdrive_ex libdd2 API Functions
RETURN VALUES
The return value is DST_SUCCESS (0) or DST_FAILURE (-1). See paragraph 5.2 for
information on
errno failure messages and associated DST result codes.
EXAMPLE
The following is an example of how to call the dst getdrive_ex() function:
/*
** get extendeddrive configuration
*/
d2_drive_ex.valid = DST_CFG_VALID;
if (dst_getdrive_ex(fd, &d2_drive_ex))
{
perror ("dst_getdrive_ex() failed");
exit (1);
}
printf("getdrive extended config: 0x%x ...\n",
d2_drive_ex.config);
SEE ALSO
“DST API Overview” on page 5-1, dst_setdrive(), dd2_set_drive