PsiFS: SWI Calls

PsiFS_InterceptControl

PsiFS_InterceptControl
(SWI &520CD)
Control an intercepted file transfer

On entry:R0 =reason code
R1 =the previously allocated handle for this intercept
Other registers depend on reason code

On exit:Registers preserved

Interrupts:Interrupt status is undefined
Fast interrupts are enabled

Processor mode:Processor is in SVC mode

Re-entrancy:SWI is not re-entrant

Use: This call controls an intercepted file transfer, depending on the reason code in R0. Valid reason codes are:
ValueMeaning
0Restart the transfer
1Replace the transfer with a different file
2Cancel the transfer

Related SWIs:PsiFS_InterceptClaim, PsiFS_InterceptPoll

Related vectors:None

PsiFS_InterceptControl 0
(SWI &520CD)
Restart the transfer

On entry:R0 =0
R1 =the previously allocated handle for this intercept

On exit:Registers preserved

Use: Restart the transfer without any changes. The temporary file will be deleted.

This should not normally be called if any tasks have closed or any windows have been moved.


PsiFS_InterceptControl 1
(SWI &520CD)
Replace the transfer with a different file

On entry:R0 =1
R1 =the previously allocated handle for this intercept

On exit:Registers preserved

Use: Restart the transfer with the temporary file replaced by a different file. The replacement file will be deleted.

This should not normally be called if any tasks have closed or any windows have been moved.


PsiFS_InterceptControl 2
(SWI &520CD)
Cancel the transfer

On entry:R0 =0
R1 =the previously allocated handle for this intercept

On exit:Registers preserved

Use: Cancel the transfer. The temporary file will be deleted.

[Contents] [Up] Copyright © Alexander Thoukydides, 1998, 1999, 2000