ET System
16.4
|
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... | |
Structure containing all ET system information.
int et_system_t::asthread |
ET_THREAD_KILL if killing add-station thread, else ET_THREAD_KEEP.
Referenced by et_system_close().
struct et_attach et_system_t::attach[ET_ATTACHMENTS_MAX] |
Array of info on attachments.
Referenced by et_attach_geteventsdump(), et_attach_geteventsget(), et_attach_geteventsmake(), et_attach_geteventsput(), et_event_dump(), et_event_get(), et_event_new(), et_event_put(), et_events_dump(), et_events_get(), et_events_new(), et_events_new_group(), et_events_put(), et_station_attach(), et_station_detach(), et_wakeup_all(), and et_wakeup_attachment().
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.
et_sys_config et_system_t::config |
Configuration parameters used to create ET system.
Referenced by et_attach_geteventsdump(), et_attach_geteventsget(), et_attach_geteventsmake(), et_attach_geteventsput(), et_event_new(), et_events_new(), et_events_new_group(), et_station_attach(), et_station_config_check(), et_station_create_at(), et_station_detach(), et_station_exists(), et_station_getattachments(), et_station_getblock(), et_station_getclass(), et_station_getcue(), et_station_getfunction(), et_station_getinputcount(), et_station_getlib(), et_station_getoutputcount(), et_station_getposition(), et_station_getprescale(), et_station_getrestore(), et_station_getselect(), et_station_getselectwords(), et_station_getstatus(), et_station_getuser(), et_station_isattached(), et_station_remove(), et_station_setblock(), et_station_setcue(), et_station_setposition(), et_station_setprescale(), et_station_setrestore(), et_station_setselectwords(), et_station_setuser(), et_system_close(), et_system_getattsmax(), et_system_getprocsmax(), et_system_getstationsmax(), et_system_gettempsmax(), et_system_setgroup(), et_system_start(), et_wakeup_all(), and et_wakeup_attachment().
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 |
Current number of temp events.
Referenced by et_event_dump(), et_event_new(), et_events_dump(), et_events_new(), et_events_new_group(), and et_system_gettemps().
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.