1DPM_PING(3) DPM Library Functions
2DPM_PING(3)
3
4
5
6[1mNAME[0m
7 dpm_ping ‐ check if Disk Pool Manager is alive and re‐
8turn its version
9 number
10
11[1mSYNOPSIS[0m
12 [1m#include <sys/types.h>[0m
13 [1m#include "dpm_api.h"[0m
14
15 [1mint dpm_ping (char *[4m[22mserver[24m[1m, char
16*[4m[22minfo[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19 [1mdpm_ping [22mchecks if the Disk Pool Manager is alive
20and returns its ver‐
21 sion number.
22
23[1mOPTIONS[0m
24 [4mserver[24m specifies the Disk Pool Manager hostname.
25If NULL, the DPM_HOST
26 environment variable is used.
27
28 [4minfo[24m points at a buffer to receive the informa‐
29tion (currently the
30 version number). The buffer must be at least
31256 characters
32 long.
33
34[1mRETURN VALUE[0m
35 This routine returns 0 if the operation was successful or
36‐1 if the
37 operation failed. In the latter case, [1mserrno [22mis set
38appropriately.
39
40[1mERRORS[0m
41 [1mEFAULT [4m[22minfo[24m is a NULL pointer.
42
43 [1mSENOSHOST [22mHost unknown.
44
45 [1mSENOSSERV [22mService unknown.
46
47 [1mSECOMERR [22mCommunication error.
48
49 [1mEDPMNACT [22mDisk Pool Manager is not running or is
50being shutdown.
51
52
53
54LCG $Date: 2007/05/09 06:38:31 $
55DPM_PING(3)
56
57
58
59
60
61
62
63
64
65
66