| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
fds_stat_t Struct Reference
Flash Data Storage

File system statistics. More...

`#include <fds.h>`

## Data Fields
uint16_t | open_records
| The number of open records.
uint16_t | valid_records
| The number of valid records.
uint16_t | dirty_records
| The number of deleted ("dirty") records.
uint16_t | words_reserved
| The number of words reserved by fds_reserve().
uint16_t | words_used
| The number of words written to flash, including those reserved for future writes.
uint16_t | largest_contig
| The largest number of free contiguous words in the file system. More...
uint16_t | freeable_words
| The largest number of words that can be reclaimed by garbage collection. More...

## Detailed Description

File system statistics.

## Field Documentation

uint16_t fds_stat_t::freeable_words

The largest number of words that can be reclaimed by garbage collection.

The actual amount of space freed by garbage collection might be less than this value if records are open while garbage collection is run.

uint16_t fds_stat_t::largest_contig

The largest number of free contiguous words in the file system.

This number determines the largest record that can be stored by FDS. It takes into account all reservations for future writes.