mpool_get()

get page from memory pool 

Function


SYNOPSIS

#include <db.h>

#include <mpool.h>

void *mpool_get(MPOOL *mp, pgno_t pgno, u_int flags);


DESCRIPTION

The mpool_get() function returns a pointer to the specified page in the specified memory pool, or NULL if the specified page does not exist.


PARAMETERS

mp 

Points to the memory pool from which a page is to be obtained. This must be a pointer returned by a prior call to mpool_open().

pgno 

Is the page number whose address is to be obtained.

flags 

Is currently unused.


RETURN VALUES

On success, mpool_get() return the address of the requested page. Otherwise, it returns NULL, and sets errno to one of the conditions specified for read(), write(), or malloc().


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

None


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
malloc(), mpool_close(), mpool_filter(), mpool_new(), mpool_open(), mpool_put(), mpool_sync(), read(), write()


PTC MKS Toolkit 10.5 Documentation Build 40.