GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > VXW / V7-1-1

Constituent: vxw_flight     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

memDrvX.c File Reference

Basically the memDrv.c file provided by VxWorks, but protected. More...

#include "copyright_wrs.h"
#include "vxWorks.h"
#include "ioLib.h"
#include "iosLib.h"
#include "stat.h"
#include "dirent.h"
#include "memLib.h"
#include "errnoLib.h"
#include "string.h"
#include "stdlib.h"
#include "stdio.h"
#include "memDrv.h"

Include dependency graph for memDrvX.c:


Data Structures

struct  MEM_DEV
struct  MEM_FILE_DESC

Functions

LOCAL MEM_DRV_DIRENTRY * memFindFile ()
LOCAL MEM_FILE_DESC * memOpen ()
LOCAL STATUS memFileStatGet ()
LOCAL int memRead ()
LOCAL int memWrite ()
LOCAL int memClose ()
LOCAL STATUS memIoctl ()
STATUS memDrv (void)
STATUS memDevCreate (char *name, char *base, int length)
STATUS memDevCreateDir (char *name, MEM_DRV_DIRENTRY *files, int numFiles)
STATUS memDevDelete (char *name)
LOCAL MEM_DRV_DIRENTRY * memFindFile (MEM_DEV *pMemDv, char *name, MEM_DRV_DIRENTRY *pDir, int *pOffset)
LOCAL MEM_FILE_DESC * memOpen (MEM_DEV *pMemDv, char *name, int mode)
LOCAL STATUS memFileStatGet (MEM_FILE_DESC *pfd, struct stat *pStat)
LOCAL int memRead (MEM_FILE_DESC *pfd, char *buffer, int maxbytes)
LOCAL int memWrite (MEM_FILE_DESC *pfd, char *buffer, int nbytes)
LOCAL STATUS memIoctl (FAST MEM_FILE_DESC *pfd, FAST int function, int arg)
LOCAL STATUS memClose (MEM_FILE_DESC *pfd)

Variables

LOCAL int memDrvNum

Detailed Description

Basically the memDrv.c file provided by VxWorks, but protected.

CVS $Id: memDrvX.c,v 1.1 2007/04/06 22:09:16 apw Exp $
Author:
A.P.Waite
memDrvX.c is a bug fix to the VxWorks file memDrv.c. The VxWorks original resulted in a value being written to address zero when memDevDelete() called iodDevFind() (by virtue of passing a NULL as the second argument). This version provides a dummy location into which iosDevFind() can write this value (the value is never actually used, or passed back, by memDevDelete()).
Generated on Sat Feb 2 01:36:18 2008 by  doxygen 1.4.4