Loading...
Searching...
No Matches

VFS based storage. More...

Detailed Description

VFS based storage.

See also
Storage Backends for more information

Files

file  bplib_stor_vfs.h
 Generic functions for vfs based storage.
 
file  cache.h
 Cache for ordered egress.
 

Macros

#define CONFIG_BPLIB_EGRESS_CACHE_LEN   (8)
 Number of bundle references to be cached.
 
#define CONFIG_BPLIB_STOR_BASE   "/nvm0/bp"
 Base folder to store bundles into.
 
#define BPLIB_STOR_BASELEN   (sizeof(CONFIG_BPLIB_STOR_BASE) - 1)
 Length of CONFIG_BPLIB_STOR_BASE without terminator.
 

Functions

void bplib_stor_vfs_contact_changed (uint32_t contact_index)
 Notify the storage implementation to clear the cache for the given contact.
 
void bplib_stor_vfs_channel_changed (uint32_t channel_index)
 Notify the storage implementation to clear the cache for the given channel.
 

Macro Definition Documentation

◆ BPLIB_STOR_BASELEN

#define BPLIB_STOR_BASELEN   (sizeof(CONFIG_BPLIB_STOR_BASE) - 1)

Length of CONFIG_BPLIB_STOR_BASE without terminator.

Definition at line 45 of file bplib_stor_vfs.h.

◆ CONFIG_BPLIB_EGRESS_CACHE_LEN

#define CONFIG_BPLIB_EGRESS_CACHE_LEN   (8)

Number of bundle references to be cached.

They do not store full bundles, but a way to find them on vfs, so the memory impact is small.

Definition at line 36 of file bplib_stor_vfs.h.

◆ CONFIG_BPLIB_STOR_BASE

#define CONFIG_BPLIB_STOR_BASE   "/nvm0/bp"

Base folder to store bundles into.

Definition at line 41 of file bplib_stor_vfs.h.