mpool_put()

unpin page in memory pool 

Function


SYNOPSIS

#include <db.h>

#include <mpool.h>

int mpool_put(MPOOL *mp, void *pgaddr, u_int flags);


DESCRIPTION

The mpool_put() function unpins the specified page, as specified by the accompanying flags.


PARAMETERS

mp 

Is the memory pool whose page is to be unpinned. This must be a pointer returned by a prior call to mpool_open().

pgaddr 

Is the address of the page to be unpinned. This must be an address returned by a prior call to mpool_get() or mpool_new().

flags 

Can be set to MPOOL_DIRTY to indicate that the page has been modified and needs to be written to the backing store.


RETURN VALUES

On success, mpool_put() returns 0. Otherwise, it returns -1.


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:
mpool_close(), mpool_filter(), mpool_get(), mpool_new(), mpool_open(), mpool_sync()


PTC MKS Toolkit 10.4 Documentation Build 39.