DELHOSTS(3PVM)
okay so bestie, welcome to DELHOSTS(3PVM) β the page where pvm_delhosts does a little host cleanup in your PVM virtual machine. No cap, this one is useful and also lowkey dangerous. π«Ά
πΈ NAME πΈ
pvm_delhosts β deletes hosts from the virtual machine. π
β¨ SYNOPSIS β¨
C:
int info = pvm_delhosts( char **hosts, int nhost, int *infos )
Fortran:
call pvmfdelhost( host, info )
π PARAMETERS π
hostsβ an array of pointers to character strings containing the names of the machines to be deleted. π₯οΈnhostβ integer specifying the number of hosts to be deleted.infosβ integer array of lengthnhostwhich contains the status code returned by the routine for the individual hosts. Values less than zero indicate an error. π¨hostβ character string containing the name of the machine to be deleted.infoβ integer status code returned by the routine. Values less thannhostindicate partial failure, values less than1indicate total failure.
π¦ DESCRIPTION π¦
The routine pvm_delhosts deletes the computers pointed to in hosts from the existing configuration of computers making up the virtual machine. All PVM processes and the pvmd running on these computers are killed as the computer is deleted. π So like, itβs giving βcleanup with consequences,β periodt.
If pvm_delhosts is successful, info will be nhost. Partial success is indicated by 1<= info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error. π
The Fortran routine pvmfdelhost deletes a single host from the configuration with each call. One host at a time, bestie. β¨
If a host fails, the PVM system will continue to function and will automatically delete this host from the virtual machine. An application can be notified of a host failure by calling pvm_notify. It is still the responsibility of the application developer to make his application tolerant of host failure. So yes, PVM has your back, but your app dev still has homework. π
π EXAMPLES π
C:
static char *hosts[] = {
"sparky",
"thud.cs.utk.edu",
};
int status[2];
info = pvm_delhosts( hosts, 2, status );
Fortran:
CALL PVMFDELHOST( 'azure', INFO )
π ERRORS π
These error conditions can be returned by pvm_delhosts:
PvmBadParamβ giving an invalid argument value. πPvmSysErrβ localpvmdnot responding. π΅
π₯ SEE ALSO π₯
pvm_addhosts(3PVM), pvm_notify(3PVM) β go read those too, bestie. iykyk. π
mwah π this DELHOSTS(3PVM) page is from PVM Version 3.4, dated 30 August, 1993. byeee π«Ά
π¦ where this page comes from
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms