Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VID_Mask_Change_Proc
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vpicd.inc
 
mov     eax, IRGHand    ; IRQ handle
mov     ebx, VMId       ; current VM handle
mov     ecx, Mask       ; zero if unmasking IRQ, nonzero if masking
call    VID_Mask_Change_Proc
 
The VID_Mask_Change_Proc procedure processes attempts to mask or unmask the
specified IRQ. The system calls this procedure whenever a virtual machine
attempts to mask or unmask an interrupt.
 
The system disables interrupts before calling this procedure. The procedure
can re-enable interrupts if necessary.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
IRQHand    Specifies the handle for the interrupt request.
 
VMId       Specifies the handle of the current virtual machine.
 
Mask       Specifies whether the IRQ is being masked or unmasked. This
           parameter is nonzero if the IRQ is being masked, and is zero if
           it is being masked.
 
Return Value
 
This procedure has no return value.
 
Comments
 
A virtual device typically uses this procedure to detect contention for a
device. The default interrupt routines use this callback to detect conflicts
with nonglobal interrupts.
 
This procedure may modify EAX, EBX, ECX, EDX, ESI, and Flags.
 
See Also
 
VPICD_IRQ_Descriptor