BattFsSuper Struct Reference

Context used to describe a disk. More...

#include <battfs.h>


Data Fields

disk_open_t open
 Disk init.
disk_page_read_t read
 Page read.
disk_page_write_t write
 Page write.
disk_page_erase_t erase
 Page erase.
disk_close_t close
 Disk deinit.
pgaddr_t page_size
 Size of a disk page, in bytes.
pgcnt_t page_count
 Number of pages on disk.
pgcnt_tpage_array
 Page allocation array.
mark_t free_start
 Lowest free page counter.
mark_t free_next
 Highest free page counter.
disk_size_t disk_size
 Size of the disk, in bytes (page_count * page_size).
disk_size_t free_bytes
 Free space on the disk.
List file_opened_list
 List used to keep trace of open files.

Detailed Description

Context used to describe a disk.

This context structure will be used to access disk. Must be initialized by hw memory driver.

Definition at line 176 of file battfs.h.


Field Documentation

Highest free page counter.

This value is the next to be used to mark a block as free.

Definition at line 206 of file battfs.h.

Lowest free page counter.

This is the counter of the first availble free page.

Definition at line 200 of file battfs.h.

Page allocation array.

This array must be allocated somewhere and must have enough space for page_count elements. Is used by the filesystem to represent the entire disk in memory.

Definition at line 194 of file battfs.h.


The documentation for this struct was generated from the following file: