|
static uintptr_t | logfs_get_addr (const struct logfs_state *logfs, uint8_t arena_id, uint16_t slot_id) |
| Return the offset in flash of a particular slot within an arena. More...
|
|
enum arena_state | __attribute__ ((packed)) |
|
static int32_t | logfs_erase_arena (const struct logfs_state *logfs, uint8_t arena_id) |
| Erases all sectors within the given arena and sets arena to erased state. More...
|
|
static int32_t | logfs_reserve_arena (const struct logfs_state *logfs, uint8_t arena_id) |
| Marks the given arena as reserved so it can be filled. More...
|
|
static int32_t | logfs_erase_all_arenas (const struct logfs_state *logfs) |
| Erases all arenas available to this filesystem instance. More...
|
|
static int32_t | logfs_activate_arena (const struct logfs_state *logfs, uint8_t arena_id) |
| Marks the given arena as active so it can be mounted. More...
|
|
static int32_t | logfs_obsolete_arena (const struct logfs_state *logfs, uint8_t arena_id) |
| Marks the given arena as obsolete. More...
|
|
static int32_t | logfs_find_active_arena (const struct logfs_state *logfs) |
| Find the first active arena in flash. More...
|
|
static int32_t | logfs_raw_copy_bytes (const struct logfs_state *logfs, uintptr_t src_addr, uint16_t src_size, uintptr_t dst_addr) |
|
static bool | logfs_fs_is_full (const struct logfs_state *logfs) |
|
static bool | logfs_log_is_full (const struct logfs_state *logfs) |
|
static int32_t | logfs_unmount_log (struct logfs_state *logfs) |
|
static int32_t | logfs_mount_log (struct logfs_state *logfs, uint8_t arena_id) |
|
static bool | PIOS_FLASHFS_Logfs_validate (const struct logfs_state *logfs) |
|
static struct logfs_state * | PIOS_FLASHFS_Logfs_alloc (void) |
|
static void | PIOS_FLASHFS_Logfs_free (struct logfs_state *logfs) |
|
int32_t | PIOS_FLASHFS_Logfs_Init (uintptr_t *fs_id, const struct flashfs_logfs_cfg *cfg, enum pios_flash_partition_labels partition_label) |
| Initialize the flash object setting FS. More...
|
|
int32_t | PIOS_FLASHFS_Logfs_Destroy (uintptr_t fs_id) |
|
static int32_t | logfs_garbage_collect (struct logfs_state *logfs) |
|
static int16_t | logfs_object_find_next (const struct logfs_state *logfs, struct slot_header *slot_hdr, uint16_t *curr_slot, uint32_t obj_id, uint16_t obj_inst_id) |
|
static int8_t | logfs_delete_object (struct logfs_state *logfs, uint32_t obj_id, uint16_t obj_inst_id) |
|
static int8_t | logfs_reserve_free_slot (struct logfs_state *logfs, uint16_t *slot_id, struct slot_header *slot_hdr, uint32_t obj_id, uint16_t obj_inst_id, uint16_t obj_size) |
|
static int8_t | logfs_append_to_log (struct logfs_state *logfs, uint32_t obj_id, uint16_t obj_inst_id, uint8_t *obj_data, uint16_t obj_size) |
|
int32_t | PIOS_FLASHFS_ObjSave (uintptr_t fs_id, uint32_t obj_id, uint16_t obj_inst_id, uint8_t *obj_data, uint16_t obj_size) |
| Saves one object instance to the filesystem. More...
|
|
int32_t | PIOS_FLASHFS_ObjLoad (uintptr_t fs_id, uint32_t obj_id, uint16_t obj_inst_id, uint8_t *obj_data, uint16_t obj_size) |
| Load one object instance from the filesystem. More...
|
|
int32_t | PIOS_FLASHFS_ObjDelete (uintptr_t fs_id, uint32_t obj_id, uint16_t obj_inst_id) |
| Delete one instance of an object from the filesystem. More...
|
|
int32_t | PIOS_FLASHFS_Format (uintptr_t fs_id) |
| Erases all filesystem arenas and activate the first arena. More...
|
|
- Author
- Tau Labs, http://taulabs.org, Copyright (C) 2012-2013
Definition in file pios_flashfs_logfs.c.