### _disable -- Disable Interrupts

Format

>     #include <builtin.h>
>     void _disable( void );

Language Level: Extension
_disable disables interrupts by executing the CLI machine instruction. It disables interrupts until the instruction after a call to _enable has been executed.

Note: _disable is a built-in function, which means it is implemented as an inline instruction and has no backing code in the library. For this reason:

- You cannot take the address of _disable.
- You cannot parenthesize a call to _disable. (Parentheses specify a call to the function's backing code, and _disable has none.)

You can run code containing this function only at ring zero. Otherwise, an invalid instruction exception is generated.

Return Value
This function has no return value.

Example
In this example, _disable disables interrupts by executing a CLI instruction.

    #include <builtin.h>

    int main(void)
    {
       /* ------------------------------------------------------ */
       /* The expected assembler instruction looks like this :   */
       /*       CLI                                              */
       /* -------------------------------------------------------*/
       _disable();
       return 0;
    }

_enable -- Enable Interrupts
_interrupt -- Call Interrupt Procedure
<builtin.h>