GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LHK / V11-4-2

Constituent: lhkt     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LHK_sched.c File Reference

Implements scheduling for LAT housekeeping. More...

#include <stdio.h>
#include <string.h>
#include "PBS/LI.h"
#include "PBS/WUT.h"
#include "LCBD/LCBD_cr.h"
#include "LCBD/LCBD_msgs.h"
#include "LHK/LHK_msgs.h"
#include "LHK_p.h"

Include dependency graph for LHK_sched.c:


Functions

static unsigned int LHK_exec_ccb (LHK_Ccb *ccb)
 Executes a ccb.
static unsigned int LHK_LCB_queue (LHK_Ccb *ccb, void *arg)
 Queues a LCB cmd list.
static FORK_cb_status LHK_stopFork (FORK_cb_prm *prm, FORK_msg_hdr *hdr)
 Stops the scheduler fork.
static FORK_cb_status LHK_startWUT (FORK_cb_prm *prm, FORK_msg_hdr *hdr)
 Starts the WUT.
static FORK_cb_status LHK_schedule (FORK_cb_prm *prm, FORK_msg_hdr *hdr)
 The LHK scheduler routine Alternates processing ccbs from the scheduled and commanded lists.
static WUT_cb_status LHK_sched_tmr (void *ptr, WUT_tmr *wut)
 Restarts the scheduler WUT.
unsigned int LHK_sched_create (const TASK_attr *attr)
 Spawns the LHK scheduler task.
unsigned int LHK_sched_activate (void)
 Starts the LHK scheduler task timer.
unsigned int LHK_sched_reset (LHK_CfgDesc *cfg)
 Reconfigures the scheduler.
unsigned int LHK_sched_replace (LHK_Ccb *ccb)
 Queus a ccb replace message to the scheduler task.
unsigned int LHK_sched_exit (void)
 Exits the LHK scheduler task.

Detailed Description

Implements scheduling for LAT housekeeping.

Author:
Sergio Maldonado -- smaldona@slac.stanford.edu

Function Documentation

static unsigned int LHK_exec_ccb LHK_Ccb ccb  )  [static]
 

Executes a ccb.

Parameters:
ccb LHK collection control block
Returns:
LHK_SUCCESS

static unsigned int LHK_LCB_queue LHK_Ccb ccb,
void *  arg
[static]
 

Queues a LCB cmd list.

Parameters:
ccb collection control block
arg null argument
Returns:
LHK_SUCCESS

unsigned int LHK_sched_activate void   ) 
 

Starts the LHK scheduler task timer.

Returns:
LHK_SUCCESS

unsigned int LHK_sched_create const TASK_attr *  attr  ) 
 

Spawns the LHK scheduler task.

Returns:
LHK_SUCCESS

unsigned int LHK_sched_exit void   ) 
 

Exits the LHK scheduler task.

Returns:
LHK_SUCCESS

unsigned int LHK_sched_reset LHK_CfgDesc cfg  ) 
 

Reconfigures the scheduler.

Parameters:
cfg Configuration block

static WUT_cb_status LHK_sched_tmr void *  prm,
WUT_tmr *  wut
[static]
 

Restarts the scheduler WUT.

Parameters:
prm Pointer to callback parameter
wut Pointer to WUT timer structure
Returns:
WUT constant WUT_K_STATE_CHANGE_YES

static FORK_cb_status LHK_startWUT FORK_cb_prm *  prm,
FORK_msg_hdr *  hdr
[static]
 

Starts the WUT.

Parameters:
prm Pointer to callback parameter
hdr Pointer to the message

static FORK_cb_status LHK_stopFork FORK_cb_prm *  prm,
FORK_msg_hdr *  hdr
[static]
 

Stops the scheduler fork.

Parameters:
prm Pointer to callback parameter
hdr Pointer to the message


Generated on Tue Aug 14 01:52:04 2007 by  doxygen 1.4.4