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

node

The node number

addr

pointer to a struct sockaddr

size

The 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).

Return Value

Returns 0 on success.

Returns -1 on error, and sets errno.

Errors

EFAULT

addr or size points to memory that is not accessible by the program.

EIO

There was an I/O error.

ENOMEM

Out of memory error.