# OS_DisableIrqMask

## Syntax

  `#include <nitro/os.h>`
  `OSIrqMask OS_DisableIrqMask( OSIrqMask intr );`

## Arguments

intr | The IRQ interrupt cause to be prohibited (expressed as a logical sum)

## Return Values

Returns the IRQ interrupt cause parameters from before this function was called. See below for information about causes. The return value is the logical sum of the causes that were formerly set.

? Types of Interrupts

## Description

Sets IRQ interrupt parameters. Changes the 'enable' bit of the specified causes from their current setting to 'prohibited'.

###
Types of Interrupts

Specify the interrupt causes to enable using the intr argument. See below for information on the types of interrupts.

? Types of Interrupts

###
Example

> `// Prohibit both V-Blank and DMA0 interrupts
> OS_DisableIrqMask( OS_IE_V_BLANK | OS_IE_DMA0 );`

## Internal Operation

Operates on one of the I/O registers, IE (Interrupt Enable).

## See Also

`OS_EnableIrqMask`, `OS_SetIrqMask`

## Revision History

2008/05/30 Moved the types of interrupts to a separate page.
2005/03/08 Standardized the Japanese term for "interrupt."
2003/12/01 Initial version.

CONFIDENTIAL