bproc_nodenumber

Name

bproc_nodenumber -- get the node number corresponding to an address

Synopsis

#include <sys/bproc.h>

int bproc_nodenumber( struct sockaddr * addr, int size );

Description

bproc_nodenumber returns the number of the node with the address given in addr. size is the size of address structure pointed to by addr.

Return Value

On success, bproc_nodenumber will return a node number or BPROC_NODE_MASTER. On error, it will return BPROC_NODE_NONE.

See Also

bproc_masteraddr(2), bproc_nodeaddr(2)