• Aucun résultat trouvé

FUNCTION 1 (.CRSVR) Saves the current context,

Dans le document TOPS-10 Monitor Calls Manual Volume 2 (Page 51-57)

PUSH command (refer to the TOPS-I0 Operating System Commands Manual) . The context created is inferior. The inferior context is deleted as soon as you switch from i t back to the superior one.

22.18.2 FUNCTION 1 (.CRSVR) Saves the current context, This is the equivalent level.

and runs a program in an inferior context.

of an auto-save, then a restore, at monitor

22.18.3 FUNCTION 2 (.CVSVT)

Creates a parallel context by saving the current one and creating a new top level context. The new context is different from one formed by a PUSH chain, as i t is not inferior, nor is· i t associated with a chain of PUSHed contexts.

22.18.4 FUNCTION 3 (.CTSVS)

Saves the current context, and switches to another (already existing) parallel context.

For instance, you could use .CTSVR to create a new context running a program, and switch back to the previous context using .CTSVS. You could later return to the context created by .CTSVR (using the .CTSVS function), and restart the program in that context, without waiting for i t to re-initialize.

CTX. [CALLI 215]

22.18.5 FUNCTION 4 (.CTSVD)

Switches to the specified context, deletes it, and returns to the previous (saved) context. You need to specify this function for parallel contexts only, since inferior contexts are automatically deleted when you return to its superior

22.18.6 FUNCTION 5 (.CTRDB)

Reads the data buffer without changing the information. An inferior context uses this to read data when a superior context passes to i t .

22.18.7 FUNCTION 6 (.CTWDB)

writes the data buffer. An inferior context writes data to its superior using this. Once data has been written, the old data in the superior context is lost.

22.18.8 FUNCTION 7 (.CTRQT)

Reads the context quota and saved-page quota for a job. The following data buffer is returned for this function and for Function 10

(.CTSQT)

Word Contents

o

1

2

Symbol .CTJOB .CTCTQ .CTPGQ

Job number, supplied by program.

Returned context quota.

Returned saved-pages quota.

22.18.9 FUNCTION 10 (.CTSQT)

Sets the context quota and saved-pages quota.

the same as the buffer returned for Function 7

22.18.10 FUNCTION 11 (.CTDIR)

The argument (.CTRQT) .

list is

Returns a directory map of all contexts. (GETTAB Table 175 (.GTCTX) word %CTBDM contains the byte pointer to the directory byte-stream.) The data buffer is returned in the following format:

Offset

o

1 2

Symbol .CTJOB .CTWCT .CTFDW

Contents

Target job number.

Word count of byte-stream data.

First data word of the directory byte-stream.

CTX. [CALLI 215]

22.18.11 FUNCTION 12 (.CTINF)

Returns information about a particular context.

returned in the following format: The data buffer is

Superior context's number.

Superior co~text's name.

Program running or saved in target context,

Illegal function code.

Address check performed while reading arguments.

Address check performed while storing answers.

Insufficient number of arg.uments.

User not logged in.

Program locked in core.

Job detached.

System context quota exceeded.

System page quota exceeded.

Job context quota exceeded.

Job page quota exceeded.

Insufficient core to save context.

Not enough core to return data block.

Illegal context number.

No superior context.

No privileges to set quotas.

Illegal job number.

Users cannot switch to an intermediate context.

Users cannot delete an intermediate context.

Users cannot delete-the current context.

Context not privileged.

C T X . [ CALL I 2 15 ] 25

26

CXNDA%

CXCCC%

No data block is available.

Cannot create context from captive program.

program has not issued a RUN UUO.)

(The

DAEFIN (CALLI 105]

22.19 DAEFIN [CALLI 105]

FUNCTION

Indicates that a request to the DAEMON program has been completed.

This monitor call is reserved for the exclusive use of the DAEMON program.

If the specified job was in the DAEMON wait state, requeues the specified job to the run queue.

CALLING SEQUENCE

addr:

MOVE ac, [XWD length,addr]

DAEFIN ac, error return skip return

jobno

the monitor

In the calling sequence, you can specify the following information:

o length is the length of the argument block.

o addr is the address of the argument block.

o jobno is the number of the logged-in job to be restarted.

SKIP RETURN

The monitor leaves the ac unchanged, requeues the specified job, and clears the JDC bit in the job status word JBTSTS (refer to the TOPS-10 Monitor Tables Descriptions)

ERROR RETURN

The monitor clears the ac. This occurs if you are not privileged, if the job number is illegal or zero, or if the request could not be completed.

EXAMPLE

ARGLST:

MOVE DAEFIN

JRST JRST EXP RELATED CALLS DAEMON

T1, [XWD 1,ARGLST]

T1, ERROR CONTIN JOBNO

DAEMON [CALLI 102]

22.20 DAEMON [CALLI 102]

FUNCTION

Invokes the system program DAEMON. When a job executes the DAEMON monitor call, the monitor puts the job into JD wait (sets the JDC bit in the job table JBTSTS) and wakes DAEMON. DAEMON examines the status word .GTSTS for each job in the system; for each job in the JDC wait state, DAEMON performs the requested function. When the specified function has been completed, DAEMON issues a DAEFIN monitor call to make the job runnable.

CALLING SEQUENC~

MOVE ac, [XWD length,addr]

addr:

DAEMON ac, error return skip return

EXP fcn-code argument-list

In the calling sequence, you can supply the following information:

o addr is the address of the argument block.

o fcn-code is the function code in the first word of the argument block.

o argument-list depends on the function code.

The function codes and argument lists are described in the following sections.

22.20.1 FUNCTION 1 (Obso1ete)

22.20.2 FUNCTION 2 (.CLOCK)

Enters a request in the clock queue to wake your job after a specified number of seconds has elapsed. As soon as the request has been entered in the queue, you should issue a call to HIBER with no time argument. An argument of zero clears the job's entry in the clock queue and wakes the job.

The argument list for the .CLOCK function is:

addr: . CLOCK

EXP seconds

In this argument list, you supply seconds as the number of seconds before the job DAEMON should wake the program. The preferred method for awakening the program after a short amount of time is by using the HIBER. call.

DAEMON [CALLI 102]

KI non-existent memory error.

Information extracted from a crash .

Channel-detected memory parity error or non-existent memory.

DAEMON restarted .

Hardware-detected device error.

Massbus device error .

Dans le document TOPS-10 Monitor Calls Manual Volume 2 (Page 51-57)

Documents relatifs