Name
bproc_nodeinfo -- get status information for single node
Synopsis
int bproc_nodeinfo
( int node,
struct bproc_node_info_t * info
);
Description
bproc_nodeinfo fills in the status structure pointed to by
info with status information for node.
struct bproc_node_info_t {
int node; /* node number */
int status; /* node status. up,down,etc */
int mode; /* permission bits */
uint16_t user; /* node owner */
uint16_t group; /* node group id */
uint32_t addr; /* current node address */
}; |
Return Value
On success, bproc_nodeinfo will return 0. On error,
it will return -1 and errno will be set appropriately.
Errors
- EINVAL
node is an invalid node number or
node is down.
- EBUSY
The BProc system is not running.