Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Microsoft Specific

Disables interrupts.

void _disable(void);

Intrinsic Architecture


x86, IPF, x64

Header file <intrin.h>

_disable instructs the processor to clear the interrupt flag. On x86 systems, this function generates the Clear Interrupt Flag (cli) instruction. On IPF systems, this function generates the Reset System Mask (rsm) instruction with an argument that clears the interrupt control flag.

This function is only available in kernel mode. If used in user mode, a Privileged Instruction exception is thrown at run time.

On IPF platforms, this routine is only available as an intrinsic.

END Microsoft Specific

© 2015 Microsoft