From 031f9ca91ade7fbb9e31c82545401b8a5531e539 Mon Sep 17 00:00:00 2001 From: xsipewe Date: Thu, 20 Oct 2016 11:46:03 +0200 Subject: erl_interface: Editorial changes --- lib/erl_interface/doc/src/erl_global.xml | 122 +++++++++++++++++-------------- 1 file changed, 67 insertions(+), 55 deletions(-) (limited to 'lib/erl_interface/doc/src/erl_global.xml') diff --git a/lib/erl_interface/doc/src/erl_global.xml b/lib/erl_interface/doc/src/erl_global.xml index 69f303722d..fa565ba56c 100644 --- a/lib/erl_interface/doc/src/erl_global.xml +++ b/lib/erl_interface/doc/src/erl_global.xml @@ -28,91 +28,100 @@ Gordon Beaton Gordon Beaton - 980703 + 1998-07-03 A erl_global.xml erl_global - Access globally registered names + Access globally registered names.

This module provides support for registering, looking - up and unregistering names in the Erlang Global module. For more - information, see the description of Global in the reference manual.

-

Note that the functions below perform an RPC using an open file + up, and unregistering names in the global module. + For more information, see + kernel:global.

+ +

Notice that the functions below perform an RPC using an open file descriptor provided by the caller. This file descriptor must - not be used for other traffic during the global operation or the - function may receive unexpected data and fail.

+ not be used for other traffic during the global operation, as the + function can then receive unexpected data and fail.

+ char **erl_global_names(fd,count) - Obtain list of Global names. + Obtain list of global names. + int fd; int *count; -

Retrieve a list of all known global names. -

-

is an open descriptor to an Erlang connection. -

-

is the address of an integer, or NULL. If - is not NULL, it will be set by the function to - the number of names found. -

+

Retrieves a list of all known global names.

+ + is an open descriptor to an Erlang + connection. + is the address of an integer, or + NULL. If is not NULL, it is + set by the function to the number of names found. +

On success, the function returns an array of strings, each - containing a single registered name, and sets to + containing a single registered name, and sets + to the number of names found. The array is terminated - by a single NULL pointer. On failure, the function returns - NULL and is not modified. -

+ by a single NULL pointer. On failure, the function returns + NULL and is not modified.

It is the caller's responsibility to free the array afterwards. It has been allocated by the function with a - single call to , so a single is - all that is necessary.

+ single call to , so a single + is all that is necessary.

+ interl_global_register(fd,name,pid) - Register a name in Global. + Register a name in global. int fd; const char *name; ETERM *pid; -

This function registers a name in Global. -

-

is an open descriptor to an Erlang connection. -

-

is the name to register in Global. -

-

is the pid that should be associated with - . This is the value that Global will return when - processes request the location of . -

-

The function returns 0 on success, or -1 on failure.

+

Registers a name in global.

+ + is an open descriptor to an Erlang + connection. + is the name to register in + global. + is the pid that is to be associated with + . This value is returned by global + when processes request the location of . + + +

Returns 0 on success, otherwise -1.

+ interl_global_unregister(fd,name) - Unregister a name in Global. + Unregister a name from global. int fd; const char *name; -

This function unregisters a name from Global. -

-

is an open descriptor to an Erlang connection. -

-

is the name to unregister from Global. -

-

The function returns 0 on success, or -1 on failure.

+

Unregisters a name from global.

+ + is an open descriptor to an Erlang + connection. + is the name to unregister from + global. + +

Returns 0 on success, otherwise -1.

+ ETERM *erl_global_whereis(fd,name,node) Look up a name in global. @@ -122,19 +131,22 @@ char *node; -

is an open descriptor to an Erlang connection. -

-

is the name that is to be looked up in Global. -

-

If is not NULL, it is a pointer to a buffer - where the function can fill in the name of the node where - is found. can be passed directly to - if necessary. -

-

On success, the function returns an Erlang Pid containing the address - of the given name, and node will be initialized to - the nodename where is found. On failure NULL will be - returned and will not be modified.

+

Looks up a name in global.

+ + is an open descriptor to an Erlang + connection. + is the name that is to be looked up in + global. + +

If is not NULL, it is a pointer to a + buffer where the function can fill in the name of the node where + is found. can be + passed directly to if necessary.

+

On success, the function returns an Erlang pid containing the address + of the specified name, and the node is initialized to + the node name where is found. On failure, + NULL is returned and is not + modified.

-- cgit v1.2.3