BeRTOS
Data Fields
BattFsSuper Struct Reference

Context used to describe a disk. More...

#include <battfs.h>

Data Fields

KBlockdev
 Block device context (physical disk).
pgaddr_t data_size
 Size of space usable for data in a disk page, in bytes. The rest is used by the page header.
pgcnt_tpage_array
 Page allocation array.
pgcnt_t free_page_start
 Lowest address, in page array, for free pages.
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 121 of file battfs.h.


Field Documentation

Lowest address, in page array, for free pages.

Pages above this element are free for use.

Definition at line 139 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 133 of file battfs.h.


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