Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fs_littlefs Struct Reference

Filesystem info structure for LittleFS mount. More...

#include <littlefs.h>

Data Fields

struct lfs_config cfg
 littlefs configuration, defaulted in driver, customizable before mount.
uint8_tread_buffer
 Read cache buffer, must be cfg.cache_size.
uint8_tprog_buffer
 Program cache buffer, must be cfg.cache_size.
uint32_tlookahead_buffer [CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE/sizeof(uint32_t)]
 Lookahead buffer, must be cfg.lookahead_size/4 elements, and cfg.lookahead_size must be a multiple of 8.
struct lfs lfs
 littlefs state, filled automatically at mount.
void * backend
 Storage backend, filled automatically at mount.
struct k_mutex mutex
 Mutex protecting the instance, filled automatically at mount.

Detailed Description

Filesystem info structure for LittleFS mount.

Field Documentation

◆ backend

void* fs_littlefs::backend

Storage backend, filled automatically at mount.

◆ cfg

struct lfs_config fs_littlefs::cfg

littlefs configuration, defaulted in driver, customizable before mount.

◆ lfs

struct lfs fs_littlefs::lfs

littlefs state, filled automatically at mount.

◆ lookahead_buffer

uint32_t* fs_littlefs::lookahead_buffer[CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE/sizeof(uint32_t)]

Lookahead buffer, must be cfg.lookahead_size/4 elements, and cfg.lookahead_size must be a multiple of 8.

◆ mutex

struct k_mutex fs_littlefs::mutex

Mutex protecting the instance, filled automatically at mount.

◆ prog_buffer

uint8_t* fs_littlefs::prog_buffer

Program cache buffer, must be cfg.cache_size.

◆ read_buffer

uint8_t* fs_littlefs::read_buffer

Read cache buffer, must be cfg.cache_size.


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