IDZEBRA  2.2.7
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

◆ alloc_block()

static struct Dict_file_block* alloc_block ( Dict_BFile  bf,
int  no 
)
static

◆ dict_bf_flush_blocks()

void dict_bf_flush_blocks ( Dict_BFile  bf,
int  no_to_flush 
)

◆ dict_bf_newp()

int dict_bf_newp ( Dict_BFile  dbf,
int  no,
void **  bufp,
int  nbytes 
)

◆ dict_bf_readp()

int dict_bf_readp ( Dict_BFile  bf,
int  no,
void **  bufp 
)

◆ dict_bf_touch()

int dict_bf_touch ( Dict_BFile  dbf,
int  no 
)

◆ dict_pr_lru()

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().

◆ find_block()

static struct Dict_file_block* find_block ( Dict_BFile  bf,
int  no 
)
static

◆ move_to_front()

static void move_to_front ( Dict_BFile  bf,
struct Dict_file_block p 
)
static

◆ release_block()

static void release_block ( Dict_BFile  bf,
struct Dict_file_block p 
)
static