208
K
A
DAK
AMX 86 Procedures
ajbcre ajbcrePurpose Create a Buffer Pool
Used by n Task o IS P o Timer Procedure n Restart Procedure n Exit Procedure
Setup #include "amx831sd.h"
.
.
AMXID poolid;
struct amxbps pooldef;
int status;
.
.
status = ajbcre(&pooldef, &poolid);
AX ES:BX DX=
Where &pooldef is a pointer to the pool definition which describes the buffer
pool to be created.
The pool definition structure amxbps is defined in header file
AMX831SD.H (see Appendix D).
All parameters in the pool definition must be valid before ajbcre is
called. The Buffer Manager will not modify your pool definition.
pooldef.ambpnb = NPN = number of buffers in the pool
pooldef.ambpbs = SPN = usable size of each buffer in bytes >= 8
SPN must be even.
pooldef.ambpbp = a pointer to a word aligned region of
N = (SPN+4)*NPN bytes of contiguous alterable memory (RAM) for
the buffer pool.
pooldef.ambptagi = a 4-character name tag for the buffer pool.
&poolid is a pointer to storage for the buffer pool id of the buffer pool
allocated to the caller.