uffs_TagsSt Struct Reference

#include <uffs_public.h>


Data Fields

u8 blockStatus
 block status, this byte is loaded from flash, but not to be wrote to flash directly
u8 blockTimeStamp:2
 time stamp of block;
u8 checkSum
 checksum of above, or ecc...
u16 dataLength
 length of page data length
u16 dataSum
 sum of file name or directory name, or ...
u8 dirty:1
 0: dirty, 1: clear
u16 father
 father's serial number
u8 pageID
 page id
u16 serial
 serial number
u8 type:4
 block type: UFFS_TYPE_DIR, UFFS_TYPE_FILE, UFFS_TYPE_DATA or UFFS_TYPE_RESV
u8 valid:1
 0: valid, 1: invalid


Detailed Description

Note:
size: 12 bytes, small enough to be embedded into the 'spare' of NAND flash page. Although this struct is designed as close as the NAND flash spare, it is *NOT* the physical map of NAND flash page's 'spare'!! It's "Logical Spare".
See also:
Logic Spare <--> Physical Spare : uffs_FlashOps->LoadPageSpare,->WritePageSpare

Definition at line 25 of file uffs_public.h.


Field Documentation

u8 uffs_TagsSt::blockStatus

block status, this byte is loaded from flash, but not to be wrote to flash directly

Definition at line 38 of file uffs_public.h.

Referenced by Samsung_IsBlockBad(), and Samsung_LoadPageSpare().

u8 uffs_TagsSt::blockTimeStamp

time stamp of block;

Definition at line 29 of file uffs_public.h.

Referenced by uffs_GetBlockTimeStamp(), and uffs_RecoverBadBlock().

u8 uffs_TagsSt::checkSum

checksum of above, or ecc...

Definition at line 37 of file uffs_public.h.

Referenced by uffs_CheckPageSpare(), uffs_IsPageErased(), and uffs_WriteDataToNewPage().

u16 uffs_TagsSt::dataLength

length of page data length

Definition at line 35 of file uffs_public.h.

Referenced by uffs_BufGetEx(), uffs_CreateNewFile(), uffs_GetBlockFileDataLength(), uffs_IsDataBlockReguFull(), and uffs_RecoverBadBlock().

u16 uffs_TagsSt::dataSum

sum of file name or directory name, or ...

Definition at line 36 of file uffs_public.h.

Referenced by uffs_CompareFileNameWithTreeNode(), and uffs_CreateNewFile().

u8 uffs_TagsSt::dirty

0: dirty, 1: clear

Definition at line 26 of file uffs_public.h.

Referenced by uffs_FindBestPageInBlock(), uffs_IsBlockPagesFullUsed(), uffs_IsPageErased(), uffs_IsThisBlockUsed(), and uffs_WriteDataToNewPage().

u16 uffs_TagsSt::father

father's serial number

Definition at line 32 of file uffs_public.h.

Referenced by uffs_CreateNewFile(), uffs_FindBestPageInBlock(), and uffs_RecoverBadBlock().

u8 uffs_TagsSt::pageID

page id

Definition at line 31 of file uffs_public.h.

Referenced by uffs_FindBestPageInBlock(), uffs_FindPageInBlockWithPageId(), uffs_GetBlockFileDataLength(), uffs_IsDataBlockReguFull(), and uffs_RecoverBadBlock().

u16 uffs_TagsSt::serial

serial number

Definition at line 33 of file uffs_public.h.

Referenced by uffs_CreateNewFile(), uffs_FindBestPageInBlock(), and uffs_RecoverBadBlock().

u8 uffs_TagsSt::type

block type: UFFS_TYPE_DIR, UFFS_TYPE_FILE, UFFS_TYPE_DATA or UFFS_TYPE_RESV

Definition at line 28 of file uffs_public.h.

Referenced by uffs_GetBlockFileDataLength(), and uffs_RecoverBadBlock().

u8 uffs_TagsSt::valid

0: valid, 1: invalid

Definition at line 27 of file uffs_public.h.

Referenced by uffs_FindBestPageInBlock(), uffs_IsPageErased(), and uffs_WriteDataToNewPage().


The documentation for this struct was generated from the following file:
Generated on Sat Mar 17 15:45:45 2007 for uffs-doc by  doxygen 1.5.0