Adic Server Manual de usuario Pagina 114

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 218
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 113
4-72 DAS ACI Functions
601626-B
Figure 4-61 Example of the aci_getvolsertoside Function
aci_init
The aci_init function initializes the AML for client use. See
Figure 4-62.
Figure 4-62 aci_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.
/* 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);
}
#include "aci.h"
int aci_init( void )
Vista de pagina 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 217 218

Comentarios a estos manuales

Sin comentarios