bproc_nodeinfo

Name

bproc_nodeinfo -- Get general status information for a node

Synopsis

#include <sys/bproc.h>

int bproc_nodeinfo (int node, struct bproc_node_info_t * info);

Arguments

node

The node you want information on.

info

Pointer to a struct bproc_node_info_t.

Description

This function will get information about the node and fill that information into the struct bproc_node_info_t.

 struct bproc_node_info_t {
    int      num_nodes;         /* Same as bproc_numnodes() */
    int      curr_node;         /* Same as bproc_currnode()
    int      node;              /* Ends up being set to the node you specify */
    int      status;            /* Same as bproc_nodestatus() */
    uint32_t addr;              /* Represents the node in question's ip address */
    int      user;              /* The uid for the user the node is assigned to */
    int      group;             /* The gid for the group the node is assigned to */
 }

See the Administrator's Guide for more information on the user and group.

Return Value

Returns 0 on success.

Returns -1 on error, and sets errno.

Errors

EFAULT

info points to memory that is inaccessible by the program.

EIO

I/O Error

ENOMEM

Out of Memory