GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MON / dev > mon / sun-gcc
#include <MON/MON_msgs.h>
#include <MON/MON_pubdefs.h>
#include <MON_idle.h>
#include <MON_perf.h>
#include <MON_poll.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/MBA.h>
#include <PBS/MTX.h>
#include <PBS/TASK.h>
#include <unistd.h>
Functions | |
unsigned int | MON_poll_init (MON_Poll_Control *ctl_p, MON_Idle_Control *idle_p, MON_Perf_Control *perf_p, MTX *mtx_p) |
Initialize the POLL task. | |
unsigned int | MON_poll_shutdown (MON_Poll_Control *ctl_p) |
Shutdown the POLL task. | |
static void * | mon_poll_task (TASK_parameter parm) |
Poll the IDLE task and performance monitors. | |
unsigned int | MON_poll_start (MON_Poll_Control *ctl_p, TASK_attr *attr_p) |
Start the POLL task. | |
unsigned int | MON_poll_stop (MON_Poll_Control *ctl_p) |
Stop the POLL task. |
** CVS $Id: MON_poll.c,v 1.2 2011/03/28 23:52:03 russell Exp $ **
Polls the IDLE loop and performance monitor functions at a periodic interval.
unsigned int MON_poll_init | ( | MON_Poll_Control * | ctl_p, | |
MON_Idle_Control * | idle_p, | |||
MON_Perf_Control * | perf_p, | |||
MTX * | mtx_p | |||
) |
Initialize the POLL task.
ctl_p | Pointer to POLL state. | |
idle_p | Pointer to IDLE monitor state. | |
perf_p | Pointer to performance monitor state. | |
mtx_p | Pointer to control block access MUTEX. |
References _MON_Poll_Control::idle_p, _MON_Poll_Control::mtx_p, _MON_Poll_Control::perf_p, and _MON_Poll_Control::tcb_p.
Referenced by MON_initialize().
unsigned int MON_poll_shutdown | ( | MON_Poll_Control * | ctl_p | ) |
Shutdown the POLL task.
ctl_p | Pointer to POLL state. |
References _MON_Poll_Control::tcb_p.
Referenced by MON_shutdown().
unsigned int MON_poll_start | ( | MON_Poll_Control * | ctl_p, | |
TASK_attr * | attr_p | |||
) |
Start the POLL task.
ctl_p | Pointer to POLL state. | |
attr_p | Pointer to POLL task attributes. |
References mon_poll_task(), _MON_Poll_Control::run, and _MON_Poll_Control::tcb_p.
Referenced by MON_start().
unsigned int MON_poll_stop | ( | MON_Poll_Control * | ctl_p | ) |
Stop the POLL task.
ctl_p | Pointer to POLL state. |
References _MON_Poll_Control::run, and _MON_Poll_Control::tcb_p.
Referenced by MON_stop().
void * mon_poll_task | ( | TASK_parameter | parm | ) | [static] |
Poll the IDLE task and performance monitors.
parm | Pointer to POLL state. |
References _MON_Poll_Control::idle_p, MON_idle_update_history(), MON_perf_poll(), _MON_Poll_Control::mtx_p, _MON_Poll_Control::perf_p, and _MON_Poll_Control::run.
Referenced by MON_poll_start().