GDSX Manual
User Exit Descriptions
Extended General Device Support (GDSX) Manual–134303
9-18
USER^INIT^CONFIG^PARAMS
process input
INT:value
indicates whether this procedure was called by the primary process or the backup
process. The value of process is one of the following:
Considerations
•
During execution of this procedure, buffers may be allocated from memory pools,
but when this procedure is exited, the buffers are no longer available.
•
Initializing semaphores can be done by the primary and backup processes, but files
should be opened only by the primary, because TSCODE’s implementation of
^OPEN and ^FILE_OPEN_ does a Guardian CHECKOPEN of the file to its backup.
•
The TSCODE-supported FAULT procedure cannot be called from this exit, because
the monitor task, which handles the EMS messages, does not exist when this exit is
executing.
•
The pseudo procedures can be called in this user exit.
•
When GDSX is running as a primary process only, this procedure executes as a
unique temporary task (user task type 17). When this task exits, it is stopped and
deleted.
USER^INIT^CONFIG^PARAMS
This routine provides you the means to set configuration parameters at GDSX process
initialization time, after the process has been started but before memory has been
allocated for the various pools and structures. By assigning parameter values within this
user exit, you can override the TSCODE default values for any static or dynamic
configuration parameters. Values assigned apply to both primary and backup processes.
USER^INIT^CONFIG^PARAMS is called only once, at startup time, when no system
or user tasks are running. This is the first user exit called by TSCODE.
For a complete description of the configuration parameters, and instructions on the
different ways of setting them, see “GDSX Configuration Parameters” in Section 2.
Considerations
•
The USER^INIT^CONFIG^PARAMS, PROCESS^ASSIGNS,
PROCESS^USER^PARAMS, and USER^VERSION user exits are called very early
in the GDSX initialization process. Buffer pools and task and file management
0 Called by the backup process
1 Called by the primary process
PROC USER^INIT^CONFIG^PARAMS;