z/OS Communications Server: CSM Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Requesting storage from CSM

z/OS Communications Server: CSM Guide
SC27-3647-00

Requirement: Before an application can retrieve storage from CSM, it must be registered as a user of a CSM buffer pool. See Creating and registering buffer pools for a description.

Table 1 lists a summary of the available CSM buffer pools. CSM returns a pool token in the RETPTOKN parameter, which the application uses on subsequent buffer requests from that pool.

Applications obtain buffers from CSM by specifying the token of the pool with which they are registered and the number of buffers on the IVTCSM REQUEST=GET_BUFFER macroinstruction. CSM allocates the requested number of buffers from that pool to the application. CSM returns a buffer list. Each entry in the buffer list contains a token and other information that the application and CSM use to reference the buffers. See CSM buffer lists for more information about buffer lists in CSM.

An application can obtain buffers from CSM as they are needed or manage its own pool of buffers to be retained for multiple uses. By default, buffers are returned to CSM when the current owner issues the IVTCSM REQUEST=FREE_BUFFER macroinstruction. An application designed to manage its own pool of buffers uses a buffer return exit routine that assumes control of the buffers after they are freed by a user.

Buffer return exit routines can receive control after buffers are released by a FREE_BUFFER request. See Buffer return exit routine for more information.

Restriction: GET_BUFFER requests that exceed the storage available in CSM are rejected. CSM users should monitor CSM storage use and take action to prevent critical shortages that might jeopardize the application or system operation. See Obtaining CSM resource statistics for more information.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014