rawfs.c File Reference

Raw device file system. More...

Go to the source code of this file.

Defines

#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2

Functions

NUTFILERawFsFileOpen (NUTDEVICE *dev, CONST char *path, int mode, int acc)
 Open a raw file.
int RawFsFileClose (NUTFILE *nfp)
 Close a raw file.
int RawFsFileWrite (NUTFILE *nfp, CONST void *buffer, int len)
 Write data to a file.
int RawFsFileWrite_P (NUTFILE *nfp, PGM_P buffer, int len)
 Write data from program space to a file.
int RawFsFileRead (NUTFILE *nfp, void *buffer, int size)
 Read data from a file.
int RawFsUnmount (NUTDEVICE *dev)
 Unmount a raw volume.
int RawFsMount (NUTDEVICE *dev, NUTFILE *blkmnt, uint8_t part_type)
 Mount a raw volume.

Variables

NUTDEVICE devRawFs0
 Raw device file system driver information structure.


Detailed Description

Raw device file system.

This file system provides a single file entry only, which is mapped to the entire volume. This implies, that there is no file name and that the size of the file is fixed.

 * $Id: rawfs.c,v 1.2 2009/02/13 14:52:05 haraldkipp Exp $
 * 

Definition in file rawfs.c.


Define Documentation

#define SEEK_SET   0

Definition at line 69 of file rawfs.c.

#define SEEK_CUR   1

Definition at line 70 of file rawfs.c.

#define SEEK_END   2

Definition at line 71 of file rawfs.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/