GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> SBC / V1-4-4 > sbc_shell / rad750


Interface   Data Structures   File List   Data Fields   Globals  

SBC_load.c File Reference

Functions to load and initialize LAT application software modules. More...

#include <vxWorks.h>
#include <stdlib.h>
#include <string.h>
#include <loadLib.h>
#include <symLib.h>
#include <ioLib.h>
#include <errno.h>
#include <SBC/SBC_msg.h>
#include <FBS/FBS_pubrtos.h>
#include <ZLIB/zlib.h>
#include <MSG/MSG_macdefs.h>
#include <CMX/CMX_asBuiltPub.h>
#include <SBC_private.h>

Functions

static unsigned int SBC_loadInflate (int outFd, unsigned char *inBuf, unsigned int inSize, void *tempBuf, unsigned int index, BOOT_Diagnostics *diag)
unsigned int SBC_loadModule (const char *inName, unsigned int id, unsigned char *tempBuf, unsigned char *fileBuf, unsigned int index, BOOT_Diagnostics *diag)
unsigned int SBC_loadFunc (char *name, const unsigned int *param, unsigned int index, BOOT_Diagnostics *diag, unsigned int funcNum)

Variables

SYMTAB_ID sysSymTbl


Detailed Description

Functions to load and initialize LAT application software modules.

Author:
D.L. Wood

Function Documentation

unsigned int SBC_loadFunc ( char *  name,
const unsigned int *  param,
unsigned int  index,
BOOT_Diagnostics *  diag,
unsigned int  funcNum 
)

Calls the specified function. Looks up the function name in the VxWorks system symbol table.

Parameters:
name The function symbol name.
param A pointer to an array of 4 function parameter words.
index SBC progress index MSG code.
diag A pointer to the boot diagnostics area.
funcNum A function index number for diagnostics.
Returns:
A SBC MSG code.

References SBC_error(), and sysSymTbl.

Referenced by SBC_shellFunc().

static unsigned int SBC_loadInflate ( int  outFd,
unsigned char *  inBuf,
unsigned int  inSize,
void *  tempBuf,
unsigned int  index,
BOOT_Diagnostics *  diag 
) [static]

Inflates a ZLIB compressed image of a module file.

Parameters:
outFd The uncompressed output file descriptor.
inBuf The buffer to holding the compressed input data.
inSize The number of bytes of compressed input data.
tempBuf A temporary buffer (should be SBC_TEMP_BUF_SIZE bytes).
index SBC progress index MSG code.
diag A pointer to the boot diagnostics area.
Returns:
A SBC MSG code.

References SBC_error(), and SBC_TEMP_BUF_SIZE.

Referenced by SBC_loadModule().

unsigned int SBC_loadModule ( const char *  inName,
unsigned int  id,
unsigned char *  tempBuf,
unsigned char *  fileBuf,
unsigned int  index,
BOOT_Diagnostics *  diag 
)

Invokes the VxWorks ELF object loader for the specified module. Possibly inflates the file first.

Parameters:
inName The path name of the module file.
id The file ID value.
tempBuf A temporary scratch buffer (SBC_TEMP_BUF_SIZE bytes).
fileBuf A temporary file buffer (SBC_FILE_BUF_SIZE bytes).
index SBC progress index MSG code.
diag A pointer to the boot diagnostics area.
Returns:
A SBC MSG code.

References SBC_error(), SBC_FILE_BUF_SIZE, SBC_loadInflate(), SBC_TEMP_DIR, and SBC_TEMP_FILE.

Referenced by SBC_shellLoad().


Variable Documentation

The VxWorks system symbol table.

Referenced by SBC_loadFunc().


Generated on Wed Nov 21 22:27:57 2012 by  doxygen 1.5.8