Skip to content
«interface»SolidSyslogBlockDeviceNorFlashBlockDeviceCore«interface»SolidSyslogNorFlash

Struct SolidSyslogNorFlashBlockDeviceConfig

ClassList > SolidSyslogNorFlashBlockDeviceConfig

  • #include <SolidSyslogNorFlashBlockDevice.h>
struct SolidSyslogNorFlashBlockDeviceConfig
{
    struct SolidSyslogNorFlash* Flash;
    size_t FirstBlock;
    size_t BlockCount;
    size_t BlockSize;
};

Public Attributes Documentation

BlockCount

How many of the flash's blocks the device may use, from FirstBlock.

size_t SolidSyslogNorFlashBlockDeviceConfig::BlockCount;

It is what SolidSyslogBlockDevice_GetBlockCount then reports. A BlockStore asks about every one of them once as it is created, which is a read of the flash for each.


BlockSize

The size of a block in bytes, as SolidSyslogBlockDevice_GetBlockSize then reports it.

size_t SolidSyslogNorFlashBlockDeviceConfig::BlockSize;

0 takes all a flash block holds, which is its size less SOLIDSYSLOG_NOR_FLASH_BLOCK_DEVICE_STATE_SIZE; more than that is refused. A smaller value has a BlockStore move on from each block sooner. It is not a limit the device applies: a BlockStore lets its largest record run past a block size smaller than one, and the device takes whatever the flash block has room for. A flash block must hold the store's largest record, or the Append of one fails.


FirstBlock

The first of the flash's blocks the device may use.

size_t SolidSyslogNorFlashBlockDeviceConfig::FirstBlock;


Flash

The flash the blocks are kept in.

struct SolidSyslogNorFlash* SolidSyslogNorFlashBlockDeviceConfig::Flash;

It must outlive the device. SolidSyslogNullNorFlash_Get() asks for no device: Create then returns the shared NullBlockDevice and reports nothing.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogNorFlashBlockDevice.h