LOOKUP(3PVM)
π LOOKUP β pvm_lookup π
okay bestie, we're doing PVM Version 3.4 today and this one is literally a little time capsule π
β¨ NAME β¨
pvm_lookup β retrieve data from pvmd database
In Version 3.4: Relaced bypvm_getinfo. (yes bestie, "relaced" β that's what the original says, and honestly? she's an icon for that π the actual tea is thatpvm_getinfois the one you want now, this one is old-school)
πΈ SYNOPSIS πΈ
C
int cc = pvm_lookup( char *name, int index, int *data )
Fortran
Not available. sorry Fortran girlies, she's C-only π«Ά
π¦ PARAMETERS π¦
nameβ the class name, and it's a null-terminated string, so no funny business β¨indexβ the class index. it's>= 0, OR you can pass-1to mean "just give me the first available one" πdataβ this is where the data stored in the<name, index>entry gets handed back to you π
π DESCRIPTION π
So for the whole lowdown on this database, go read pvm_insert(3PVM) β she explains the lore, not me π
pvm_lookup does exactly one thing and she does it well: she retrieves the data stored at the location given by <name, index>.
And if you pass index as -1? Then you get the data stored at the first existing index in the named class. like, "idk just give me whatever's there first" energy, and honestly same π
π ERRORS π
vibe check time π§ if it works, pvm_lookup returns the index at which the data was stored, and that's >= 0. anything negative means something went wrong:
PvmBadParamβ you gave an invalid argument value. ma'am. πPvmNoEntryβ the<name, index>pair you asked for does not exist. it's giving empty shelf π
π SEE ALSO π
pvm_delete(3PVM)pvm_insert(3PVM)
mwah π that's the whole page β pvm_lookup from PVM Version 3.4, dated 27 June, 1994, and yes she's still slaying in the archives. go read pvm_getinfo if you're on 3.4 tho fr fr π«Άβ¨
π¦ 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