Main Page | Modules | Data Structures | File List | Data Fields | Globals

src/common/misc/tcache.h File Reference

Declarations for the Timeout Cache (tcache) component. More...

#include <sys/time.h>
#include "pvfs2-types.h"
#include "quicklist.h"
#include "quickhash.h"

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  PINT_tcache
 Describes a tcache instance. More...

struct  PINT_tcache_entry
 Describes a single entry in the tcache. More...


Enumerations

enum  PINT_tcache_replace_algorithms { LEAST_RECENTLY_USED = 1 }
enum  PINT_tcache_options {
  TCACHE_TIMEOUT_MSECS = 1, TCACHE_NUM_ENTRIES = 2, TCACHE_HARD_LIMIT = 3, TCACHE_SOFT_LIMIT = 4,
  TCACHE_ENABLE = 5, TCACHE_RECLAIM_PERCENTAGE = 6, TCACHE_REPLACE_ALGORITHM = 7, TCACHE_ENABLE_EXPIRATION = 8
}

Functions

PINT_tcachePINT_tcache_initialize (int(*compare_key_entry)(void *key, struct qhash_head *link), int(*hash_key)(void *key, int table_size), int(*free_payload)(void *payload), int table_size)
void PINT_tcache_finalize (struct PINT_tcache *tcache)
int PINT_tcache_get_info (struct PINT_tcache *tcache, enum PINT_tcache_options option, unsigned int *arg)
int PINT_tcache_set_info (struct PINT_tcache *tcache, enum PINT_tcache_options option, unsigned int arg)
int PINT_tcache_insert_entry (struct PINT_tcache *tcache, void *key, void *payload, int *purged)
int PINT_tcache_lookup (struct PINT_tcache *tcache, void *key, struct PINT_tcache_entry **entry, int *status)
int PINT_tcache_reclaim (struct PINT_tcache *tcache, int *reclaimed)
int PINT_tcache_delete (struct PINT_tcache *tcache, struct PINT_tcache_entry *entry)
int PINT_tcache_refresh_entry (struct PINT_tcache *tcache, struct PINT_tcache_entry *entry)

Detailed Description

Declarations for the Timeout Cache (tcache) component.


Generated on Tue Feb 7 02:43:55 2012 for PVFS by doxygen 1.3.5