File libsrc/dl_lru.c


Included Files


Preprocessor definitions

#define SEARCH_MISSING_LIST

#define SEARCH_FREE_LIST

#define SEARCH_LRU_LIST

#define SEARCH_ALL_LISTS

#define C_MODE( r, n, a, t, m, d )


Type struct vchar_gen


Typedef vchar_ptr

typedef struct vchar_gen* vchar_ptr
See:

Type struct cps


Local Variables

Master_List
static struct List* Master_List
Used in:

default_flags
static int default_flags

Used in:

Global Function Add_Cache_Item()

int Add_Cache_Item ( const char* list_name, const void* list_key, ... )
Prototyped in:
Calls:
References Variables:

Global Function Cache_Alloc_Lump()

void* Cache_Alloc_Lump ( size_t sz, const char* name, char** new_name )
Prototyped in:
Calls:
Called by:

Global Function Cache_Build_Field_List()

int Cache_Build_Field_List ( struct Cache_List* cl, const char* format_str, const char* field_names )
Prototyped in:
Calls:
Called by:

Global Function Cache_Complete_Miss()

int Cache_Complete_Miss ( const char* list_name, const void* list_key )
Prototyped in:
Calls:
References Variables:

Global Function Cache_Find_Simple_Item()

struct Cache_Item* Cache_Find_Simple_Item ( struct Cache_List* cl, const char* list_key, int* rv )
Prototyped in:
Calls:
Called by:

Global Function Cache_Flush()

int Cache_Flush ( const char* list_name )
Prototyped in:
Calls:
References Variables:

Global Function Cache_Init()

int Cache_Init ( int def_flags )
Prototyped in:
Calls:
References Variables:

Global Function Create_Cache_List()

int Create_Cache_List ( const char* list_name, int max_items, int list_flags, size_t key_size, const char* format_str, const char* field_names )
Prototyped in:
Calls:
References Variables:

Global Function Find_Cache_Item()

int Find_Cache_Item ( const char* list_name, const void* list_key, const char* field_list, ... )
Prototyped in:
Calls:
References Variables:

Global Function Find_Full_Item()

void* Find_Full_Item ( struct Full_List* flist, const char* name )
Prototyped in:
Calls:
Called by:

Global Function Get_Cache_Master_List()

struct List* Get_Cache_Master_List ( void )
Prototyped in:
Calls:
Called by:
References Variables:

Global Function Init_Full_List()

Full_List* Init_Full_List ( Full_List* list, const char* name, int flags )
Prototyped in:
Calls:
Called by:

Global Function New_Cache_List()

struct Cache_List* New_Cache_List ( const char* list_name, int max_items, int flags, int defaults, int last_ditch )
Prototyped in:
Calls:
Called by:

Local Function Alloc_Many()

static int Alloc_Many ( struct Cache_List* cl, size_t key_size )
Calls:
Called by:

Local Function Cache_Flag_Gen()

static int Cache_Flag_Gen ( int new_flags, int alt_flags )
Called by:

Local Function Init_Item()

static int Init_Item ( struct Cache_Item* ci, struct Cache_List* cl, char* new_name, size_t name_len )
Calls:
Called by:

Local Function Local_Cache_Init()

static int Local_Cache_Init ( List** cml )
Calls:
Called by:

Local Function New_Cache_Item()

static struct Cache_Item* New_Cache_Item ( struct Cache_List* cl, char* item_name )
Calls:
Called by:

Local Function Obtain_Cache_Item()

static struct Cache_Item* Obtain_Cache_Item ( struct Cache_List* cl, const char* list_key, List* L_List, int i_flags )
Calls:
Called by: