June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int memp_register(DB_ENV *env, int ftype, int (*pgin_fcn)(DB_ENV *, db_pgno_t pgno, void *pgaddr, DBT *pgcookie), int (*pgout_fcn)(DB_ENV *, db_pgno_t pgno, void *pgaddr, DBT *pgcookie));
The memp_register function registers page-in and page-out functions for files of type ftype in the specified pool.
If the pgin_fcn function is non-NULL, it is called each time a page is read into the memory pool from a file of type ftype, or a page is created for a file of type ftype (see the DB_MPOOL_CREATE flag for the memp_fget function).
If the pgout_fcn function is non-NULL, it is called each time a page is written to a file of type ftype.
Both the pgin_fcn and pgout_fcn functions are called with a reference ...