Adic Server Manuel d'utilisateur Page 114

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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 )
Vue de la page 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 217 218

Commentaires sur ces manuels

Pas de commentaire