GETOPT(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

πŸ’– GETOPT(3PVM) β€” the pvm_getopt manual, but make it make sense πŸ’–

okay so this is the PVM Version 3.4 page for pvm_getopt, aka the little function that just... tells you stuff. It reads the current value of a libpvm option and hands it back to you. No drama, no side quests. Bestie behavior fr fr. 🫢


✨ NAME ✨

pvm_getopt β€” returns the value of libpvm options. That's it. That's the whole job. πŸ‘‘


🌸 SYNOPSIS 🌸

C:

int val = pvm_getopt( int what )

Fortran:

call pvmfgetopt( what, val )

πŸŽ€ PARAMETERS πŸŽ€

  • what β€” an integer that says which option you wanna peek at. It's giving "pick a card". Here's the whole menu, lowkey iconic:
    • PvmRoute 1 β€” message routing policy
    • PvmDebugMask 2 β€” libpvm debug mask
    • PvmAutoErr 3 β€” auto error reporting
    • PvmOutputTid 4 β€” stdout destination for children
    • PvmOutputCode 5 β€” output message tag for children
    • PvmTraceTid 6 β€” trace data destination for children
    • PvmTraceCode 7 β€” trace message tag for children
    • PvmTraceBuffer 8 β€” trace buffer size for children
    • PvmTraceOptions 9 β€” trace collection options for children
    • PvmFragSize 10 β€” message fragment size
    • PvmResvTids 11 β€” allow messages to reserved tags and TIDs
    • PvmSelfOutputTid 12 β€” stdout destination
    • PvmSelfOutputCode 13 β€” output message tag
    • PvmSelfTraceTid 14 β€” trace data destination
    • PvmSelfTraceCode 15 β€” trace message tag
    • PvmSelfTraceBuffer 16 β€” trace buffer size
    • PvmSelfTraceOptions 17 β€” trace collection options
    • PvmShowTids 18 β€” pvm_catchout prints task ids with output
    • PvmPollType 19 β€” message wait policy (shared memory)
    • PvmPollTime 20 β€” message spinwait duration
    • PvmOutputContext 21 β€” output message context for children
    • PvmTraceContext 22 β€” trace message context for children
    • PvmSelfOutputContext 23 β€” output message context
    • PvmSelfTraceContext 24 β€” trace message context
    • PvmNoReset 25 β€” do not kill task on reset
  • val β€” the integer that comes back holding the value of the option. It's the reply text. πŸ’Œ

πŸ’… DESCRIPTION πŸ’…

pvm_getopt returns the value of the specified option in PVM. Like, you ask, it answers. Simple situationship.

If you wanna know what all these options and values actually mean, go read pvm_setopt β€” that's the one that explains the lore. This one is just the reader. πŸ“–

heads up bestie β€” if an error happens, the PVM error code gets returned in place of the option value. So like... the thing you got back might not be your option at all. Check yourself before you wreck yourself. πŸ’€

⭐ EXAMPLES ⭐

C:

val = pvm_getopt( PvmFragSize );

Fortran:

CALL PVMFGETOPT( PVMAUTOERR, VAL )

😭 ERRORS 😭

This error condition can be returned:

  • PvmBadParam β€” you gave it an invalid value. Not every what is a valid what, bestie. πŸ™ˆ

🌈 SEE ALSO 🌈

  • pvm_setopt(3PVM) β€” the sister function. The one that writes. Go read her. πŸ¦‹

and that's the whole page, no notes. This was PVM Version 3.4's GETOPT(3PVM), dated 4 April, 1994 β€” so like, vintage vintage. Old enough to be your mom's favorite manpage. πŸ’–βœ¨ Slay, stay safe, and always check your return value. Periodt. πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from