GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
SBC / V1-4-2
Constituent: sbc_shell     Tag: mv2304
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"
Include dependency graph for SBC_load.c:
|
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.
|
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.
|
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.
|
Variable Documentation
|
The VxWorks system symbol table. |
Generated on Mon Nov 12 01:55:42 2007 by
1.4.4