1NODEUPDOWN_UP_COUNT(3)           LIBNODEUPDOWN          NODEUPDOWN_UP_COUNT(3)
2
3
4

NAME

6       nodeupdown_up_count, nodeupdown_down_count - return the number of nodes
7       that are up or down
8

SYNOPSIS

10       #include <nodeupdown.h>
11
12       int nodeupdown_up_count(nodeupdown_t handle);
13
14       int nodeupdown_down_count(nodeupdown_t handle);
15

DESCRIPTION

17       nodeupdown_up_count() returns the number of nodes that are up.
18
19       nodeupdown_down_count() returns the number of nodes that are down.
20
21

RETURN VALUES

23       On  success,  nodeupdown_up_count()  and  nodeupdown_down_count()  will
24       return  the  number  of  up  or down nodes respectively. On error, both
25       return -1, and an error code is returned in handle.  The error code can
26       be  retrieved  via nodeupdown_errnum(3), and a description of the error
27       code can be retrieved  via  nodeupdown_strerror(3).   Error  codes  are
28       defined in nodeupdown.h.
29

ERRORS

31       NODEUPDOWN_ERR_NULLHANDLE
32              The  handle  parameter  is  NULL.  The nodeupdown handle must be
33              created with nodeupdown_handle_create(3).
34
35       NODEUPDOWN_ERR_NOTLOADED
36              nodeupdown_load_data(3) has not been called and no data has been
37              retrieved.
38
39       NODEUPDOWN_ERR_MAGIC
40              handle  has an incorrect magic number.  handle does not point to
41              a nodeupdown handle or handle  has  been  destroyed  by  nodeup‐
42              down_handle_destroy(3).
43

FILES

45       /usr/include/nodeupdown.h
46

SEE ALSO

48       libnodeupdown(3), nodeupdown_handle_create(3), nodeupdown_load_data(3),
49       nodeupdown_errnum(3), nodeupdown_strerror(3)
50
51
52
53LLNL                            September 2003          NODEUPDOWN_UP_COUNT(3)
Impressum