RCB (Resource Control Block Definition) Macro
The RCB macro generates an 8-byte word-aligned resource control block (RCB), which allows you to protect a user-defined resource if the ENQ macro is issued before (and the DEQ macro is issued after) each use of the resource.
The RCB can be allocated below or above the 16 MB line.
Format
Requirements for the caller
- RMODE:
- 24 or ANY
- ASC Mode:
- Primary
The format of the RCB is shown below.
- Bytes
- Purpose of Bits
- 0
- All bits are set to 1 to indicate that the resource has been placed in a priority queue by the ENQ macro.
- 1-3
- Reserved.
- 4-7
- ECB address of current resource owner (4-byte address). Bit 0 of byte 4 is set to 1 when another task is waiting to use the resource.