24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ENQ. [CALLI 151]<br />

1 .ENQRI<br />

2 .ENQTL<br />

An 18-bit request-id identifying this request.<br />

This optional value identifies the ENQ. request,<br />

enabling you to identify it when it causes a<br />

software interrupt. This is useful when you use<br />

the ENQ/DEQ facility in conjunction with the<br />

software interrupt (PSI) system. After an<br />

interrupt is generated, the request-ids of the<br />

granted requests are inclusively ORed into the<br />

status word of the interrupt block. To receive a<br />

software interrupt, use function code 2 (.ENQSI)<br />

when you issue the ENQ. monitor call. The<br />

request-id can also be used with the DEQ. call to<br />

dequeue a specific request.<br />

Time limit specifying the number of seconds to<br />

wait for each request in the call to be granted.<br />

If any resource is not available within that time<br />

limit, the call takes the error return with the<br />

ENQTL% error code in the ac. This word is<br />

optional. If you include the time limit in the<br />

header block, specify 3 for size in word O.<br />

Each lock block represents a separate ENQ. request. There is no<br />

limit to the number of locks that can be requested, but multiple<br />

requests in the same ENQ. call must be given level numbers. The<br />

locks will be granted in the order of the level numbers.<br />

The format of a lock block is shown here and described in more<br />

on the following pages<br />

detail<br />

Word Symbol<br />

o<br />

.ENQFL<br />

1 .ENQBP<br />

2 .ENQPS<br />

3 .ENQMS<br />

4 .ENQTB<br />

Contents<br />

flags+B17+channo<br />

/ flags+user-code \<br />

I user-code I<br />

\ string-pointer /<br />

/ pool-size"number \<br />

\ O"sharer-group /<br />

mask-length"mask-addr<br />

block-length"block-addr<br />

A lock block is two to five words long, identifying the resource to be<br />

locked and describing the characteristics of the lock. The first<br />

requestor of a resource defines lock characteristics. Subsequent<br />

requests for the same resource must conform to those characteristics<br />

or wait until the resource is released by the first requestor.<br />

22-1<strong>10</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!