SrrNameAttach

SrrNameAttach — attaches a name to a process.

Syntax

#include <srripc.h>

int SrrNameAttach(nid_t n, const char* name);

Arguments

n
The applicable node. If 0 the local node is used.
name
The name to be attached.

Returns

On success, returns a name ID, used as the argument to SrrNameDetach. On failure, returns -1 and sets errno.

Description

This function attaches a name to this process. If a name starts with a slash '/' then it is considered to be a global name. Global names are registered with optionally run global process name servers.

Errors

  • EAGAIN Name space used up on this node
  • EBUSY Specified name already exists on that node
  • Resource Temporarily Unavailable This error may occur when you have exceeded the maximum limit for names. Please refer to the Increasing the Maximum Number of Named Processes section of the Troubleshooting Guide for instructions on how to increase this limit.

See Also

SrrNameDetach, SrrNameLocate,