man3rmt/lclAddWrtLockAns
Table of Contents
lclAddWrtLockAns - local - add a write lock and wait for an answer
lclAddWrtLockAns
passes a write lock request to
dbman. dbman returns a message indicating
success or failure of the request. The current value of the datapoint is
also returned and may be used as a starting point for updates.
The request
is passed in local mode.
This function is part of librmt.
int lclAddWrtLockAns
(
int fo
LABEL *Lpnt,
DESC *Dpnt,
double *V,
int send_verbosity,
int recv_verbosity
);
The file descriptor for the connection to dbman.
pointer
to LABEL associated with datapoint.
pointer to DESC associated with
datapoint.
pointer to variable to place current datapoint value.
Defines
the amount of messages to print. This value is passed on to SendRec. A value
of 0 produces no messages. See the SendRec manpage for full details on available
values.
Defines the amount of messages to print. This value
is passed on to RecvRec. A value of 0 produces no messages. See the RecvRec
manpage for full details on available values.
ERRok is returned
if the transaction is successful.
ERRbadp is returned for bad pointers.
ERRlock is returned if a lock is already present.
ERRwp is returned if the caller doesn’t have write permission.
The error code from the transaction is returned if there is a communications
error.
librmt(3rmt)
$Id: lclAddWrtLockAns.3,v
1.2 2008/08/22 16:21:09 mcnamer Exp $
Table of Contents