#include "hash.h"
Include dependency graph for cache.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef _cache * | cache_t |
a cache is actually a pointer to a _cache structure. | |
typedef void *(* | cache_missfunc_t )(hashindex_t TAG, void *PARM) |
cache-miss callback function type. More... | |
typedef int(* | cache_invfunc_t )(hashindex_t *PTAG, void **PDATA, void *PARM) |
cache-invalidation callback function type. More... | |
Functions | |
void | cache_init (cache_t *CACHE, size_t SIZE, cache_missfunc_t MISSFUNC, cache_invfunc_t INVFUNC) |
initialises the cache. More... | |
void | cache_finish (cache_t CACHE) |
finalises the cache. More... | |
void * | cache_lookup (cache_t CACHE, hashindex_t TAG, void *PARM) |
the purpose of the cache - to lookup data associated with a tag. More... | |
int | cache_invalidate (cache_t CACHE, void *PARM) |
cache invalidation. More... | |
void | cache_enable (cache_t CACHE) |
enables a cache. More... | |
void | cache_disable (cache_t CACHE) |
disables a cache. More... | |
void | cache_status (cache_t CACHE, FILE *F, char const *NAME, int PREC) |
outputs the status of a cache. More... |
Definition in file cache.h.