ET System  16.4
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
et_statconfig.c File Reference
#include <stdio.h>
#include <string.h>
#include "et_private.h"

Functions

int et_station_config_init (et_statconfig *sconfig)
 This routine initializes a configuration used to create a station in the ET system. More...
 
int et_station_config_destroy (et_statconfig sconfig)
 This routine frees the memory allocated when a configuration is initialized by et_station_config_init(). More...
 
int et_station_config_setblock (et_statconfig sconfig, int val)
 This routine sets a station configuration's block mode. More...
 
int et_station_config_getblock (et_statconfig sconfig, int *val)
 This routine gets a station configuration's block mode. More...
 
int et_station_config_setflow (et_statconfig sconfig, int val)
 This routine sets a station configuration's flow mode. More...
 
int et_station_config_getflow (et_statconfig sconfig, int *val)
 This routine gets a station configuration's flow mode. More...
 
int et_station_config_setselect (et_statconfig sconfig, int val)
 This routine sets a station configuration's select mode which determines the algorithm this station uses to decide which events to let into its input list. More...
 
int et_station_config_getselect (et_statconfig sconfig, int *val)
 This routine gets a station configuration's select mode. More...
 
int et_station_config_setuser (et_statconfig sconfig, int val)
 This routine sets a station configuration's user mode which is the maximum number of users which may simultaneously attach to the station. More...
 
int et_station_config_getuser (et_statconfig sconfig, int *val)
 This routine gets a station configuration's user mode. More...
 
int et_station_config_setrestore (et_statconfig sconfig, int val)
 This routine sets a station configuration's restore mode which determines where events go when the attachment that owns those events detaches from the station. More...
 
int et_station_config_getrestore (et_statconfig sconfig, int *val)
 This routine gets a station configuration's restore mode which determines where events go when the attachment who owns those events detaches from the station. More...
 
int et_station_config_setcue (et_statconfig sconfig, int val)
 This routine sets a station configuration's queue size which is the max number of events allowed in the input list when the station is nonblocking. More...
 
int et_station_config_getcue (et_statconfig sconfig, int *val)
 This routine gets a station configuration's queue size which is the max number of events allowed in the input list when the station is nonblocking. More...
 
int et_station_config_setprescale (et_statconfig sconfig, int val)
 This routine sets a station configuration's prescale value. More...
 
int et_station_config_getprescale (et_statconfig sconfig, int *val)
 This routine gets a station configuration's prescale value. More...
 
int et_station_config_setselectwords (et_statconfig sconfig, int val[])
 This routine sets a station configuration's array of selection integers. More...
 
int et_station_config_getselectwords (et_statconfig sconfig, int val[])
 This routine gets a station configuration's array of selection integers. More...
 
int et_station_config_setfunction (et_statconfig sconfig, const char *val)
 This routine sets a station configuration's name of the user-defined function which is loaded from a shared library and used for selecting events. More...
 
int et_station_config_getfunction (et_statconfig sconfig, char *val)
 This routine gets a station configuration's name of the user-defined function which is loaded from a shared library and used for selecting events (may be NULL). More...
 
int et_station_config_setlib (et_statconfig sconfig, const char *val)
 This routine sets a station configuration's name of the shared library which is used for loading a user's function to select events. More...
 
int et_station_config_getlib (et_statconfig sconfig, char *val)
 This routine gets a station configuration's name of the shared library which is used for loading a user's function to select events (may be NULL). More...
 
int et_station_config_setclass (et_statconfig sconfig, const char *val)
 This routine sets a station configuration's name of the Java class which is used for loading a user's function to select events. More...
 
int et_station_config_getclass (et_statconfig sconfig, char *val)
 This routine gets a station configuration's name of the Java class which is used for loading a user's function to select events. More...
 
int et_station_config_check (et_id *id, et_stat_config *sc)
 This routine checks a station's configuration settings for internal inconsistencies or bad values. More...
 
int et_station_compare_parallel (et_id *id, et_stat_config *group, et_stat_config *config)
 This routine compares all relevant station configuration parameters to see if both configs are compatible enough to belong in the same parallel station group. More...
 

Function Documentation

int et_station_compare_parallel ( et_id id,
et_stat_config group,
et_stat_config config 
)

This routine compares all relevant station configuration parameters to see if both configs are compatible enough to belong in the same parallel station group.

Parameters
idet system id.
grouppointer to config of a station already in a parallel group.
configpointer to config of station to add to parallel group.
Returns
1 if compatible.
0 if NOT compatible.

References et_stat_config_t::block_mode, et_id_t::debug, ET_DEBUG_ERROR, et_logmsg(), ET_STATION_SELECT_EQUALCUE, ET_STATION_SELECT_RROBIN, et_stat_config_t::flow_mode, et_stat_config_t::prescale, and et_stat_config_t::select_mode.