nfs-ganesha 1.4
Classes | Defines | Typedefs | Enumerations | Functions

LRU_List.h File Reference

Management of the thread safe LRU lists. More...

#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <pthread.h>
#include "abstract_mem.h"

Go to the source code of this file.

Classes

struct  LRU_data__
struct  lru_entry__
struct  lru_param__
struct  lru_list__

Defines

#define LRU_DISPLAY_STRLEN   1024
#define LRU_LIST_SUCCESS   0
#define LRU_LIST_MALLOC_ERROR   1
#define LRU_LIST_EMPTY_LIST   2
#define LRU_LIST_BAD_RELEASE_ENTRY   3
#define LRU_LIST_SET_INVALID   0
#define LRU_LIST_DO_NOT_SET_INVALID   1

Typedefs

typedef enum LRU_List_state__ LRU_List_state_t
typedef struct LRU_data__ LRU_data_t
typedef struct lru_entry__ LRU_entry_t
typedef struct lru_param__ LRU_parameter_t
typedef struct lru_list__ LRU_list_t
typedef int LRU_status_t

Enumerations

enum  LRU_List_state__ { LRU_ENTRY_BLANK = 0, LRU_ENTRY_VALID = 1, LRU_ENTRY_INVALID = 2 }

Functions

LRU_entry_tLRU_new_entry (LRU_list_t *plru, LRU_status_t *pstatus)
int LRU_pop_entry (LRU_list_t *plru, LRU_entry_t *out_entry)
LRU_list_tLRU_Init (LRU_parameter_t lru_param, LRU_status_t *pstatus)
int LRU_gc_invalid (LRU_list_t *plru, void *cleanparam)
int LRU_invalidate (LRU_list_t *plru, LRU_entry_t *pentry)
int LRU_invalidate_by_function (LRU_list_t *plru, int(*testfunc)(LRU_entry_t *, void *addparam), void *addparam)
int LRU_apply_function (LRU_list_t *plru, int(*myfunc)(LRU_entry_t *, void *addparam), void *addparam)
void LRU_Print (LRU_list_t *plru)

Detailed Description

Management of the thread safe LRU lists.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:03:21
Version:
Revision:
1.28

LRU_List.h :Management of the thread safe LRU lists.

Definition in file LRU_List.h.


Define Documentation

#define LRU_DISPLAY_STRLEN   1024

Definition at line 103 of file LRU_List.h.

#define LRU_LIST_BAD_RELEASE_ENTRY   3

Definition at line 109 of file LRU_List.h.

#define LRU_LIST_DO_NOT_SET_INVALID   1

Definition at line 112 of file LRU_List.h.

#define LRU_LIST_EMPTY_LIST   2

Definition at line 108 of file LRU_List.h.

#define LRU_LIST_MALLOC_ERROR   1

Definition at line 107 of file LRU_List.h.

#define LRU_LIST_SET_INVALID   0

Definition at line 111 of file LRU_List.h.

#define LRU_LIST_SUCCESS   0

Definition at line 106 of file LRU_List.h.


Typedef Documentation

typedef struct LRU_data__ LRU_data_t
typedef struct lru_entry__ LRU_entry_t
typedef struct lru_list__ LRU_list_t
typedef struct lru_param__ LRU_parameter_t
typedef int LRU_status_t

Definition at line 88 of file LRU_List.h.


Enumeration Type Documentation

Enumerator:
LRU_ENTRY_BLANK 
LRU_ENTRY_VALID 
LRU_ENTRY_INVALID 

Definition at line 48 of file LRU_List.h.