IDZEBRA  2.1.2
Functions
drdwr.c File Reference
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "dict-p.h"

Go to the source code of this file.

Functions

void dict_pr_lru (Dict_BFile bf)
 
static struct Dict_file_blockfind_block (Dict_BFile bf, int no)
 
static void release_block (Dict_BFile bf, struct Dict_file_block *p)
 
void dict_bf_flush_blocks (Dict_BFile bf, int no_to_flush)
 
static struct Dict_file_blockalloc_block (Dict_BFile bf, int no)
 
static void move_to_front (Dict_BFile bf, struct Dict_file_block *p)
 
int dict_bf_readp (Dict_BFile bf, int no, void **bufp)
 
int dict_bf_newp (Dict_BFile dbf, int no, void **bufp, int nbytes)
 
int dict_bf_touch (Dict_BFile dbf, int no)
 

Function Documentation

static struct Dict_file_block* alloc_block ( Dict_BFile  bf,
int  no 
)
static
void dict_bf_flush_blocks ( Dict_BFile  bf,
int  no_to_flush 
)
int dict_bf_newp ( Dict_BFile  dbf,
int  no,
void **  bufp,
int  nbytes 
)
int dict_bf_readp ( Dict_BFile  bf,
int  no,
void **  bufp 
)
int dict_bf_touch ( Dict_BFile  dbf,
int  no 
)

Definition at line 244 of file drdwr.c.

References Dict_file_block::dirty, and find_block().

Referenced by clean_page(), dict_close(), dict_del_string(), dict_del_subtree(), and dict_ins().

void dict_pr_lru ( Dict_BFile  bf)

Definition at line 37 of file drdwr.c.

References Dict_file_struct::lru_back, Dict_file_block::lru_next, and Dict_file_block::no.

Referenced by dict_bf_newp().

static struct Dict_file_block* find_block ( Dict_BFile  bf,
int  no 
)
static
static void move_to_front ( Dict_BFile  bf,
struct Dict_file_block p 
)
static
static void release_block ( Dict_BFile  bf,
struct Dict_file_block p 
)
static