|
NAMEpvm_config - Returns information about the present virtual machine configuration.SYNOPSISC int info = pvm_config( int *nhost, int *narch, struct pvmhostinfo **hostp ) PARAMETERS
DESCRIPTIONThe routine pvm_config returns information about the present virtual machine. The information returned is similar to that available from the console command conf.The C function returns information about the entire virtual machine in one call. The Fortran function returns information about one host per call and cycles through all the hosts. Thus, if pvmfconfig is called nhost times, the entire virtual machine will be represented. Note that in C the hostp array is allocated and owned by libpvm. It is automatically freed or reused on the next call to pvm_config. Note that in Fortran the reported value of nhost and the host configuration do not change until the function resets at the end of a complete cycle. The user can reset pvmfconfig() at any time by calling it with nhost = -1. If pvm_config is successful, info will be 0. If some error occurs then info will be < 0. EXAMPLESC: struct pvmhostinfo *hostp; int i, nhost, narch; info = pvm_config( &nhost, &narch, &hostp ); for (i = 0; i < nhost; i++) printf("%s\n", hostp[i].hi_name); Fortran: Do i=1, NHOST CALL PVMFCONFIG( NHOST,NARCH,DTID(i),HOST(i),ARCH(i),SPEED(i),INFO ) Enddo ERRORSThe following error condition can be returned by pvm_config
SEE ALSOpvm_tasks(3PVM)
Visit the GSP FreeBSD Man Page Interface. |