Specifications

OpenVMS System Routines Called by OpenVMS AXP Device Drivers
IOC$ALLOC_CRCTX
IOC$ALLOC_CRCTX
Allocates and initializes a counted resource context block (CRCTX).
Module
ALLOC_CNT_RES
Format
IOC$ALLOC_CRCTX crab ,crctx_ref ,[eck_index]
Context
IOC$ALLOC_CRCTX conforms to the OpenVMS AXP calling standard. Because
IOC$ALLOC_CRCTX calls EXE$ALONONPAGED to allocate sufficient memory
for a CRCTX, its caller cannot be executing above IPL$_POOL.
Arguments
crab
VMS Usage: address
type: longword (unsigned)
access: read only
mechanism: by reference
Address of CRAB that describes the counted resource. For adapters that supply
a counted resource, such as map registers, ADP$L_CRAB often contains this
address.
crctx_ref
VMS Usage: address
type: longword (unsigned)
access: write only
mechanism: by reference
Address of a location in which IOC$ALLOC_CRCTX places the address of the
allocated CRCTX.
Returns
VMS Usage: cond_value
type: longword_unsigned
access: longword (unsigned)
mechanism: write only—by value
Status indicating the success or failure of the operation.
Return Values
SS$_NORMAL The routine completed successfully.
SS$_INSFMEM Memory allocation request failed.
A–8