Determines whether the buffer address is valid and exists within a pool buffer.
BOOLEAN mpool_validate_buffer( MPOOL pool, void * buf );
pool
buf
The value of buf passed to mpool_validate_buffer() must be a value returned from mpool_alloc or mpool_ realloc. mpool_validate_buffer() will fail for values of buf+n where n >= 1.
EACCES |
The buffer address does not exist within the process. |
EINVAL |
The pool is not a valid MPOOL or the buffer does not belong to the pool. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 4.0 | intime/rt/include/mpool.h | mpool.h | clib.lib |