NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES
#include <exec/chModules.h>int sysGetConf(const char *modName, int var, int *pvalue);
CORE
The sysGetConf system call copies the value from the Chorus module corresponding to the module name modName, as defined in chModules.h into the integer pointed to by pvalue. The modName pointer must point to a null terminated string containing the name of the module whose configuration value is required. The pvalue pointer points to an integer which, on successful completion, will contain the value corresponding to the var configuration parameter of modName.
The var value may be either K_GETCONF_VERSION to get the version of a specified module, or a value defined in a specific module header (for example, K_GETCONF_ACTOR_MAX in exec/chExec.h for the maximum number of actors on a site, or K_GETCONF_PORT_MAX in ipc/chIpc.h for the maximum number of ports on a site).
Upon successful completion, if the module specified is present, K_OK is returned. Otherwise, a negative error code is returned.
modName; the module is not present in the current Chorus run--time configuration. This is an easy way of testing for the presence of a module at run--time.
Some of the data provided are outside the current actor's address space.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES