Raw device file system. More...
#include <dev/blockdev.h>#include <sys/event.h>#include <sys/nutdebug.h>#include <fs/fs.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <memdebug.h>#include <fs/rawfs.h>
Go to the source code of this file.
Defines | |
| #define | SEEK_SET 0 |
| #define | SEEK_CUR 1 |
| #define | SEEK_END 2 |
Functions | |
| NUTFILE * | RawFsFileOpen (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. | |
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 2909 2010-03-18 12:59:56Z haraldkipp $ *
Definition in file rawfs.c.