cfs-coffee.h File Reference

Header for the Coffee file system. More...

#include "cfs.h"

Go to the source code of this file.

Defines

#define CFS_COFFEE_IO_FLASH_AWARE   0x1
 Instruct Coffee that the access pattern to this file is adapted to flash I/O semantics by design, and Coffee should therefore not invoke its own micro logs when file modifications occur.
#define CFS_COFFEE_IO_FIRM_SIZE   0x2
 Instruct Coffee not to attempt to extend the file when there is an attempt to write past the reserved file size.

Functions

Functions called from application programs



int cfs_coffee_reserve (const char *name, cfs_offset_t size)
 Reserve space for a file.
int cfs_coffee_configure_log (const char *file, unsigned log_size, unsigned log_entry_size)
 Configure the on-demand log file.
int cfs_coffee_set_io_semantics (int fd, unsigned flags)
 Set the I/O semantics for accessing a file.
int cfs_coffee_format (void)
 Format the storage area assigned to Coffee.
void * cfs_coffee_get_protected_mem (unsigned *size)
 Points out a memory region that may not be altered during checkpointing operations that use the file system.

Detailed Description

Header for the Coffee file system.

Author:
Nicolas Tsiftes <nvt@sics.se>

Definition in file cfs-coffee.h.


Generated on Mon Apr 11 14:23:45 2011 for Contiki 2.5 by  doxygen 1.6.1