DELHOSTS(3PVM)
π DELHOSTS(3PVM) β aka pvm_delhosts, the "bye bestie π" button for your virtual machine
okay so this is from the PVM Version 3.4 manual, and it's literally the routine that removes computers from your virtual machine. it's giving "block and delete" but for hosts. no cap. π¦
β¨ NAME β¨
pvm_delhosts β Deletes hosts from the virtual machine. bye felicia π
πΈ 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. so like, a whole lil squad of hostnames πnhostβ Integer specifying the number of hosts to be deleted. yes bestie, you gotta tell it how many.infosβ Integer array of lengthnhostwhich contains the status code returned by the routine for the individual hosts. Values less than zero indicate an error. so each host gets its own lil report card πhostβ Character string containing the name of the machine to be deleted. (this one's the Fortran single-host version, one at a time, main character energy)infoβ Integer status code returned by the routine. Values less thannhostindicate partial failure, values less than 1 indicate 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. And listen β it is not subtle. All PVM processes and the pvmd running on these computers are killed as the computer is deleted. like, full ghosting. π
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. so if one of them is being messy, you can literally point at it. π
The Fortran routine pvmfdelhost deletes a single host from the configuration with each call. one. at. a. time. no multitasking 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. and that part is on YOU, not on PVM β don't forget it β¨
π 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. bestie that input was not it πPvmSysErrβ localpvmdnot responding. it's not answering your texts, lowkey a red flag π©
π¦ SEE ALSO π¦
pvm_addhosts(3PVM)β the add-bestie counterpartpvm_notify(3PVM)β so you actually find out when a host dips
okay so real talk: deleting a host kills every PVM process and the pvmd on it. that's not a soft launch, that's a full send. make sure that's what you want π
and that's the whole page, bestie!! this lil icon was documented way back on 30 August, 1993 (fr fr, ancient but still slaying) and it ships with PVM Version 3.4 β so when you're out here deleting hosts, just know the source and the date said so. periodt. ππ
π¦ 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