Berkeley DB Reference Version 5.3.33

DB_ENV->get_memory_init()

#include <db.h>

int
DB_ENV->get_memory_init(DB_ENV *dbenv, DB_MEM_CONFIG type, 
                        u_int32_t *countp);  

The DB_ENV->get_memory_init() method returns the number of objects to allocate and initialize when an environment is created. The count is returned for a specific named structure. The count for each structure is set using the DB_ENV->set_memory_init() method.

The DB_ENV->get_memory_init() method may be called at any time during the life of the application.

The DB_ENV->get_memory_init() method returns a non-zero error value on failure and 0 on success.

Parameters

type

The struct parameter identifies the structure for which you want an object count returned. It must be one of the following values:

countp

The countp parameter references memory into which the object count for the specified structure is copied.

Class

DB_ENV

See Also

Database Environments and Related Methods