Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

SetIntVector

Set a new handler for a system interrupt vector

Declaration

Source position: exec.pas line 1868

function SetIntVector(

  IntNumber: LongWord;

  const Interrupt_: PInterrupt

):PInterrupt;

Arguments

IntNumber

  

Interrupt bit number [0..14]. Only non-chained interrupts should be set. Use AddIntServer() for server chains.

Interrupt_

  

A pointer to an Interrupt structure containing the handler's entry point and data segment pointer. A NULL interrupt pointer will remove the current interrupt and set illegal values for IS_CODE and IS_DATA. By convention, the LN_NAME of the interrupt structure must point a descriptive string so that other users may identify who currently has control of the interrupt.

Function result

A pointer to the prior interrupt structure which had control of this interrupt.

Description

This function provides a mechanism for setting the system interrupt vectors. These are non-sharable; setting a new interrupt handler disconnects the old one. Installed handlers are responsible for processing, enabling and clearing the interrupt. Note that interrupts may have been left in any state by the previous code.

The IS_CODE and IS_DATA pointers of the Interrupt structure will be copied into a private place by Exec. A pointer to the previously installed Interrupt structure is returned.

See also

AddIntServer

  

Adds a interrupt server to the system


Documentation generated on: 2021-07-30