BeRTOS
Data Fields
BattFsPageHeader Struct Reference

BattFS page header, used to represent a page header in memory. More...

#include <battfs.h>

Data Fields

inode_t inode
 File inode (file identifier).
fill_t fill
 Filled bytes in page.
pgoff_t pgoff
 Page offset inside file.
seq_t seq
 Page sequence number.
fcs_t fcs
 FCS (Frame Check Sequence) of the page header.

Detailed Description

BattFS page header, used to represent a page header in memory.

To see how this is stored on disk:

See also:
battfs_to_disk
disk_to_battfs

Definition at line 70 of file battfs.h.


Field Documentation

Page sequence number.

Every time a page is rewritten the seq number is increased by 1. seq_t is wide enough to not to perform a wrap around before the memory death. So it can be kept as it would be monotonically increasing for our needs.

Definition at line 84 of file battfs.h.


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