90 uint64_t node, uint64_t service, uint64_t expiry, uint8_t index);
Generic functions for vfs based storage.
list_node_t clist_node_t
List node structure.
#define CONFIG_BPLIB_EGRESS_CACHE_LEN
Number of bundle references to be cached.
void bplib_cache_mark_front_consumed(cache_list_t *cache)
Actually pop the front of the loadbuffer / cache.
int bplib_cache_add(cache_list_t *cache, uint64_t node, uint64_t service, uint64_t expiry, uint8_t index)
Add a bundle to the lookup cache.
int bplib_cache_get(cache_list_t *cache, char *bundle_path)
Peek the given cache queue.
bool bplib_cache_is_empty(cache_list_t *cache)
Check if the cache is empty.
Bundle Cache element, containing information to uniquely identify a bundle on vfs.
uint64_t node
destination node ID of the bundle
clist_node_t list
clist base
uint64_t expiry
expiry time of the bundle
uint8_t index
Index in the storage.
uint64_t service
destination service ID of the bundle
bool all_bundles_queued
Whether all bundles in the storage are in the queue.
clist_node_t list
Head pointer of the clist.
cache_list_node_t nodes[CONFIG_BPLIB_EGRESS_CACHE_LEN]
Collection of possible cache nodes.