regfi
Functions
lru_cache.c File Reference
Include dependency graph for lru_cache.c:

Functions

lru_cachelru_cache_create (uint32_t max_keys, uint32_t secret)
 XXX: finish documenting.
lru_cachelru_cache_create_ctx (void *talloc_ctx, uint32_t max_keys, uint32_t secret, bool talloc_data)
 XXX: finish documenting.
void lru_cache_destroy (lru_cache *ht)
 XXX: finish documenting.
bool lru_cache_update (lru_cache *ht, const void *index, uint32_t index_len, void *data)
 XXX: finish documenting.
void * lru_cache_find (lru_cache *ht, const void *index, uint32_t index_len)
 XXX: finish documenting.
bool lru_cache_remove (lru_cache *ht, const void *index, uint32_t index_len)
 XXX: finish documenting.

Detailed Description


Function Documentation

void* lru_cache_find ( lru_cache ht,
const void *  index,
uint32_t  index_len 
)

XXX: finish documenting.

Returns:
A pointer to data previously stored at index. If no data was found at index, NULL is returned.

Referenced by regfi_load_key(), and regfi_load_sk().

bool lru_cache_remove ( lru_cache ht,
const void *  index,
uint32_t  index_len 
)

XXX: finish documenting.

Removes entry from table at index.

Returns:
A pointer to data that was there previously or NULL if no entry is at index.
 All Data Structures Files Functions Variables