bproc_nodeaddr¶
Name¶
bproc_nodeaddr – Get the IP address for a node.
Synopsis¶
#include <sys/bproc.h>
int bproc_nodeaddr (int node, struct sockaddr * addr, int * size);
Arguments¶
nodeThe node number
addrpointer to a
struct sockaddrsizeThe size of
addr
Description¶
Save the node’s IP address in the struct sockaddr pointed to by
addr. The size element should be initialized to indicate the
amount of space pointed to by addr. On return it contains the actual
size of the addr returned (in bytes).
Errors¶
- EFAULT
 addrorsizepoints to memory that is not accessible by the program.- EIO
 There was an I/O error.
- ENOMEM
 Out of memory error.