ET System  16.4
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
et_system_t Struct Reference

Structure containing all ET system information. More...

#include <et_private.h>

Data Fields

int version
 Major version number of this ET software release. More...
 
int nselects
 Number of selection ints per station (also control ints per event). More...
 
int bitInfo
 Least significant bit = 1 if ET system created by 64 bit executable, and next bit = 1 if ET system is being told to kill itself. More...
 
int asthread
 ET_THREAD_KILL if killing add-station thread, else ET_THREAD_KEEP. More...
 
unsigned int heartbeat
 Heartbeat which periodically increments to indicate ET is alive. More...
 
int hz
 System clock rate in Hz. More...
 
int nstations
 Current number of stations idle or active. More...
 
int ntemps
 Current number of temp events. More...
 
int nprocesses
 Current number of local processes which have opened system. More...
 
int nattachments
 Current number of attachments to stations in system. More...
 
int port
 TCP server port. More...
 
int tcpFd
 TCP server's listening socket file descriptor. More...
 
int udpFd
 UDP server's listening socket file descriptor. More...
 
et_stat_id stat_head
 Index to head of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot). More...
 
et_stat_id stat_tail
 Index to tail of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot). More...
 
pid_t mainpid
 Unix pid of ET system. More...
 
void * pmap
 Pointer to mapped mem in ET system's process (used for user-called routines to read/write pointers correctly from shared mem). More...
 
pthread_mutex_t mutex
 Pthread mutex to protect system data during changes. More...
 
pthread_mutex_t stat_mutex
 Pthread mutex to protect station data during changes. More...
 
pthread_mutex_t statadd_mutex
 Pthread mutex used to add stations one at a time. More...
 
pthread_cond_t statadd
 Pthread condition variable used to add new stations. More...
 
pthread_cond_t statdone
 Pthread condition variable used to signal end of station creation. More...
 
pthread_t tid_hb
 System heartbeat thread id. More...
 
pthread_t tid_hm
 System heartmonitor thread id. More...
 
pthread_t tid_as
 System add station thread id. More...
 
pthread_t tid_srv
 ET TCP server thread id. More...
 
pthread_t tid_mul
 Id of thread spawning broad/multicast listening threads. More...
 
char host [ET_MAXHOSTNAMELEN]
 Host of the ET system. More...
 
struct et_proc proc [ET_PROCESSES_MAX]
 Array of info on processes. More...
 
struct et_attach attach [ET_ATTACHMENTS_MAX]
 Array of info on attachments. More...
 
et_sys_config config
 Configuration parameters used to create ET system. More...
 

Detailed Description

Structure containing all ET system information.

Field Documentation

int et_system_t::asthread

ET_THREAD_KILL if killing add-station thread, else ET_THREAD_KEEP.

Referenced by et_system_close().

int et_system_t::bitInfo

Least significant bit = 1 if ET system created by 64 bit executable, and next bit = 1 if ET system is being told to kill itself.

unsigned int et_system_t::heartbeat

Heartbeat which periodically increments to indicate ET is alive.

Referenced by et_system_getheartbeat(), and et_system_start().

char et_system_t::host[ET_MAXHOSTNAMELEN]

Host of the ET system.

int et_system_t::hz

System clock rate in Hz.

Referenced by et_event_new(), et_events_new(), et_events_new_group(), and et_system_start().

pid_t et_system_t::mainpid

Unix pid of ET system.

Referenced by et_system_getpid().

pthread_mutex_t et_system_t::mutex

Pthread mutex to protect system data during changes.

int et_system_t::nattachments

Current number of attachments to stations in system.

Referenced by et_station_attach(), et_station_detach(), and et_system_getattachments().

int et_system_t::nprocesses

Current number of local processes which have opened system.

Referenced by et_system_getprocs().

int et_system_t::nselects

Number of selection ints per station (also control ints per event).

int et_system_t::nstations

Current number of stations idle or active.

Referenced by et_station_create_at(), et_station_remove(), and et_system_getstations().

int et_system_t::ntemps
void* et_system_t::pmap

Pointer to mapped mem in ET system's process (used for user-called routines to read/write pointers correctly from shared mem).

Referenced by et_system_start().

int et_system_t::port

TCP server port.

struct et_proc et_system_t::proc[ET_PROCESSES_MAX]

Array of info on processes.

Referenced by et_station_attach(), and et_station_detach().

et_stat_id et_system_t::stat_head

Index to head of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).

pthread_mutex_t et_system_t::stat_mutex

Pthread mutex to protect station data during changes.

et_stat_id et_system_t::stat_tail

Index to tail of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).

pthread_cond_t et_system_t::statadd

Pthread condition variable used to add new stations.

Referenced by et_station_create_at(), and et_system_close().

pthread_mutex_t et_system_t::statadd_mutex

Pthread mutex used to add stations one at a time.

Referenced by et_station_create_at().

pthread_cond_t et_system_t::statdone

Pthread condition variable used to signal end of station creation.

Referenced by et_station_create_at().

int et_system_t::tcpFd

TCP server's listening socket file descriptor.

Used to close socket when killed.

Referenced by et_system_close().

pthread_t et_system_t::tid_as

System add station thread id.

Referenced by et_system_start().

pthread_t et_system_t::tid_hb

System heartbeat thread id.

Referenced by et_system_close(), and et_system_start().

pthread_t et_system_t::tid_hm

System heartmonitor thread id.

Referenced by et_system_close(), and et_system_start().

pthread_t et_system_t::tid_mul

Id of thread spawning broad/multicast listening threads.

Referenced by et_system_close(), and et_system_start().

pthread_t et_system_t::tid_srv

ET TCP server thread id.

Referenced by et_system_close(), and et_system_start().

int et_system_t::udpFd

UDP server's listening socket file descriptor.

Used to close socket when killed.

Referenced by et_system_close().

int et_system_t::version

Major version number of this ET software release.


The documentation for this struct was generated from the following file: