nodeupdown_last_up_time man page

nodeupdown_last_up_time — retrieve time since epoch of the last known up time for a node.

Synopsis

#include <nodeupdown.h>

int nodeupdown_last_up_time(nodeupdown_t handle, const char *node, unsigned int *last_up_time);

Description

nodeupdown_last_up_time() returns the last known time since epoch node was up.  The value is stored in last_up_time.

Return Values

On success, 0 is returned.  On error, -1 is returned, and an error code is returned in handle.  The error code can be retrieved via nodeupdown_errnum(3) , and a description of the error code can be retrieved via nodeupdown_strerror(3). Error codes are defined in nodeupdown.h.

Errors

NODEUPDOWN_ERR_NULLHANDLE

The handle parameter is NULL.  The nodeupdown handle must be created with nodeupdown_handle_create(3).

NODEUPDOWN_ERR_NOTLOADED

nodeupdown_load_data(3) has not been called and no data has been retrieved.

NODEUPDOWN_ERR_NOTFOUND

The node pointed to by node is not known.

NODEUPDOWN_ERR_NOTSUPPORTED

This feature is not supported by the local nodeupdown configuration.

NODEUPDOWN_ERR_MAGIC

handle has an incorrect magic number.  handle does not point to a nodeupdown handle or handle has been destroyed by nodeupdown_handle_destroy(3).

Files

/usr/include/nodeupdown.h

See Also

libnodeupdown(3), nodeupdown_handle_create(3), nodeupdown_load_data(3), nodeupdown_errnum(3), nodeupdown_strerror(3)

Referenced By

libnodeupdown(3).

September 2007 LLNL LIBNODEUPDOWN