ET System  16.5
All Data Structures Files Functions Variables Typedefs Macros Modules Pages

These routines are called by a programmer wishing to create or destroy an ET system. More...

Functions

int et_system_start (et_sys_id *id, et_sysconfig sconfig)
 This routine creates an ET system. More...
 
int et_system_close (et_sys_id id)
 This routine closes or shuts down an ET system. More...
 

Detailed Description

These routines are called by a programmer wishing to create or destroy an ET system.

Function Documentation

◆ et_system_close()

int et_system_close ( et_sys_id  id)

This routine closes or shuts down an ET system.

Parameters
idET system id.
Returns
ET_OK if successful.
ET_ERROR if not called by ET system process.

References et_id_t::debug, ET_DEBUG_ERROR, ET_ERROR, et_logmsg(), ET_SYS, et_id_t::grandcentral, and et_id_t::proc.

◆ et_system_start()

int et_system_start ( et_sys_id id,
et_sysconfig  sconfig 
)

This routine creates an ET system.

The process that executes this routine becomes the ET system process. A good example of its use is in the et_start.c file.

Parameters
idpointer to ET system id - a value-result argument - in which is returned the id of the new system which gets created.
sconfigdesired configuration of the new ET system (set by routines starting with et_system_config_ ...).
Returns
ET_OK if successful.
ET_ERROR if ET system could not be created.

References et_id_t::debug, err_abort, et_id_t::esize, ET_DEBUG_ERROR, et_id_init(), ET_IS_ALIVE_NSEC, ET_IS_ALIVE_SEC, and et_id_t::nevents.