File: pvm_insert.3

package info (click to toggle)
pvm 3.4.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,280 kB
  • sloc: ansic: 72,074; makefile: 1,197; fortran: 631; sh: 282; csh: 74; asm: 37
file content (65 lines) | stat: -rw-r--r-- 1,746 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.\" $Id: pvm_insert.3,v 1.2 1996/10/08 18:33:36 pvmsrc Exp $
.TH INSERT 3PVM "27 June, 1994" "" "PVM Version 3.4"
.SH NAME
pvm_insert \- store data in pvmd database
.br
[In Version 3.4: Relaced by pvm_putinfo]

.SH SYNOPSIS
.nf
.ft B
C	int cc = pvm_insert( char *name, int index, int data )
.br

Fortran	Not available
.fi

.SH PARAMETERS
.IP name 0.8i
The class name, a null-terminated string.
.IP index 0.8i
The class index, >= 0 or -1 for first available.
.IP data 0.8i
Data to store in the <name, index> entry.

.SH DESCRIPTION
The master pvmd maintains a simple database,
which can be used to store values such as tids and make them
accessible anywhere within a virtual
machine.
This is useful when building an application such as the group
server,
which must advertise its task id
so clients can register send messages to register.

The database stores integer data,
indexed by <name, index> pairs.
The name may be any null-terminated string
and the index any non-negative integer.
Database entries are grouped by name into classes;
index may be specified as -1 to store or retrieve the first available
instance in a class.

These functions are not part of the group library,
but are the underlying mechanism used to implement it.

\fIpvm_insert\fR stores data at the given index.
If index is -1,
the data is stored at the first available index in the named class,
starting at 0.

.\".SH EXAMPLES

.SH ERRORS
If successful,
pvm_insert returns the index at which the data was stored,
otherwise it returns a negative result.
The following error conditions can be returned:
.IP PvmBadParam
giving an invalid argument value.
.IP PvmDupEntry
the requested <name, index> pair is already in use.
.PP
.SH SEE ALSO
pvm_delete(3PVM),
pvm_lookup(3PVM)