ADIC Server manual Aciinit function initializes the AML for client use. See

Models: Server

1 218
Download 218 pages 15.53 Kb
Page 114
Image 114

/* Display volsers for the optical disk*/

int rc = 0;

char *volser = "00815F";

struct aci_sideinfo *sideinfo[ACI_SIDE_NUMBER];

rc = aci_getvolsertoside( volser, sideinfo); if( rc )

{

aci_perror( "Command failed: " );

}

else

printf( "Side:%s Volser:%d\n", side_info[0]->Side, side_info[0]->Volser, side_info[1]->Side, side_info[1]->Volser);

}

Figure 4-61Example of the aci_getvolsertoside Function

aci_init

The aci_init function initializes the AML for client use. See

Figure 4-62.

#include "aci.h"

int aci_init( void )

Figure 4-62aci_init Function Call

Most clients wish to start from a known status, the aci_init call is provided so that an initialization, or restart, of a client may request that any resources previously held are freed.

Normally this call can be placed in the initialization of the client code. This function requests that the DAS server dismount any occupied drives defined to the requesting client.

For additional information, refer to aci_initialize on page 4-74.

4-72 DAS ACI Functions

601626-B

Page 114
Image 114
ADIC Server manual Aciinit function initializes the AML for client use. See