Specifications
OpenVMS System Routines Called by OpenVMS AXP Device Drivers
IOC$ALLOC_CRCTX
Description
A driver calls IOC$ALLOC_CRCTX to allocate a CRCTX to describe a specific
request for a given counted resource, such as a set of map registers. The driver
subsequently uses the CRCTX as input to IOC$ALLOC_CNT_RES to allocate a
given set of the objects managed as a counted resource.
IOC$ALLOC_CRCTX calls EXE$ALONONPAGED to allocate the CRCTX. If
the allocation request succeeds, IOC$ALLOC_CRCTX initializes the CRCTX as
follows and returns SS$_NORMAL to its caller:
Field Description
CRCTX$W_SIZE Size of the CRCTX in bytes
CRCTX$B_TYPE DYN$C_MISC
CRCTX$B_SUBTYPE DYN$C_CRCTX
CRCTX$L_CRAB Address of CRAB as specified in the crab argument
CRCTX$B_FLCK Contents of flck_index argument is supplied, else
defaults to IPL$C_IOLOCK8
A–9