Nut/OS  4.10.3
API Reference
rawfs.c File Reference

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>
Include dependency graph for rawfs.c:

Go to the source code of this file.


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


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.


 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 2909 2010-03-18 12:59:56Z haraldkipp $

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.