Specifications
OpenVMS System Routines Called by OpenVMS AXP Device Drivers
IOC$ALLOC_CRAB
IOC$ALLOC_CRAB
Allocates and initializes a counted resource allocation block (CRAB).
Module
ALLOC_CNT_RES
Format
IOC$ALLOC_CRAB item_cnt ,req_alloc_gran ,crab_ref
Context
IOC$ALLOC_CRAB conforms to the OpenVMS AXP calling standard. Because
IOC$ALLOC_CRAB calls EXE$ALONONPAGED to allocate sufficient memory for
a CRAB, its caller cannot be executing above IPL$_POOL.
Arguments
item_cnt
VMS Usage: longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by value
Number of items associated with the resource.
req_alloc_gran
VMS Usage: longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by value
Requested allocation granularity associated with the resource.
crab_ref
VMS Usage: address
type: longword (unsigned)
access: write only
mechanism: by reference
Address of a cell to which IOC$ALLOC_CRAB returns the address of the
allocated CRAB.
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.
A–6