Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-24
POOL_PUTSPACE_ Procedure
pool input
INT .EXT:ref:*
is the address of the pool as specified in the call to the POOL_DEFINE_
procedure. When POOL_PUTSPACE_ is called, the pool header is updated.
block input
INT .EXT:ref:*
is the address of the block to be returned to the pool.
Considerations
POOL_GETSPACE_ and POOL_PUTSPACE_ do not check pool data structures on
each call. A process that destroys data structures can fail on a call to
POOL_GETSPACE_ or POOL_PUTSPACE_: a TNS Guardian process can get a
bounds violation trap (trap 0); an OSS or native process can receive a SIGSEGV
signal.
Example
error := POOL_PUTSPACE_ ( pool, pblock );
! put a block obtained from POOL_GETSPACE_ back into
! the pool obtained from POOL_DEFINE_.
Related Programming Manual
For programming information about the POOL_PUTSPACE_ memory-management
procedure, refer to the
Guardian Programmer’s Guide.