For internal use only.
This file contains the implementation of the sparse matrix freelist and its support functions. The freelist is intended to avoid memory fragmentation due to the large number of hash entry structures that must be allocated by the sparse matrix system.
Definition in file smat_freelist.c.
#include <stdlib.h>
#include <string.h>
#include "dbprim.h"
#include "dbprim_int.h"
Include dependency graph for smat_freelist.c:
Go to the source code of this file.
Functions | |
smat_entry_t * | _smat_alloc (void) |
Allocate a sparse matrix entry. | |
void | _smat_free (smat_entry_t *entry) |
Release a sparse matrix entry. | |
unsigned long | smat_cleanup (void) |
Clean up the smat free list. | |
unsigned long | smat_freemem (void) |
Report how much memory is used by the free list. | |
Variables | |
static link_head_t | _smat_freelist |
Sparse matrix freelist. |