Specifications

HighWire MTP-2 - 1.2, September 4, 2002 sbe_dprOpen 117
7-3. sbe_dprOpen
Using sbe_dataOpen(3X), this routine opens a connection to the DPR service
on the specified board and returns a file descriptor for that connection. It is
equivalent to sbe_dataOpen (DPR_SERVICE, Board, 0, oflags).
Allowed values for oflags are described in open(2).
Synopsis
#include <fcntl.h>
#include "sbe_dprlib.h"
int sbe_dprOpen (int Board, int oflags);
Return values On a successful open, sbe_dprOpen returns the number of the file descriptor
for the opened connection. On an error, 1 is returned with errno as described
in libsbe(3).
See also sbe_dataOpen(3X), libsbe(3), dprservice, open(2)
7-4. sbe_dprClose
sbe_dprClose closes the connection to the DPR service on the board and
leaves the DPR configuration on the board as is. It is equivalent to close
(fildes).
Synopsis
#include "sbe_dprlib.h"
int sbe_dprClose (int fildes);
Return values See close(2)
See also close(2)
7-5. sbe_dprRead
This routine issues a command to the DPR service to return up to nmaps of
the current connection matrix. If nmaps is set to MAX_CONNECTIONS, all
connection maps are read into the buffer buf.
Synopsis
#include "sbe_dprlib.h"
int sbe_dprRead (int fildes, MAP *buf, int nmaps);
Return values On a successful read, sbe_dprRead returns the number of connection maps
read. On an error, if sbe_dprRead returns a 1, the global variable errno is set
by getmsg or putmsg. Otherwise sbe_dprRead returns a negative error code
as described in dprd_if.h or dpr/dpr_driver.h.
See also dprservice(7d), getmsg(2), putmsg(2)