Loading...
Searching...
No Matches
cache_list_node_t Struct Reference

Bundle Cache element, containing information to uniquely identify a bundle on vfs. More...

Detailed Description

Bundle Cache element, containing information to uniquely identify a bundle on vfs.

Contains the filepath (the node/allocator and service), its expiry time and the (storage internal) duplicate index. With this information a bundle in storage is uniquely identified. The list should be maintained sorted by the expiry DTN time, so that egress can be sped up. A node of 0 is reserved for unused cache elements.

Definition at line 42 of file cache.h.

#include <cache.h>

Data Fields

clist_node_t list
 clist base
 
uint64_t node
 destination node ID of the bundle
 
uint64_t service
 destination service ID of the bundle
 
uint64_t expiry
 expiry time of the bundle
 
uint8_t index
 Index in the storage.
 

Field Documentation

◆ expiry

uint64_t cache_list_node_t::expiry

expiry time of the bundle

Definition at line 50 of file cache.h.

◆ index

uint8_t cache_list_node_t::index

Index in the storage.

In case the above do not uniquely identify a bundle. It is only an uint8 because we assume that there won't be more than 256 bundles with the same expiry time to the same node at any given time.

Definition at line 55 of file cache.h.

◆ list

clist_node_t cache_list_node_t::list

clist base

Definition at line 44 of file cache.h.

◆ node

uint64_t cache_list_node_t::node

destination node ID of the bundle

Definition at line 46 of file cache.h.

◆ service

uint64_t cache_list_node_t::service

destination service ID of the bundle

Definition at line 48 of file cache.h.


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