kernel/arm/interrupt.c
/*
 * MaskInterrupt();
 *
 * Masks an IRQ line.
 * Only MaskInterrupt() and UnmaskInterrupt() system calls should be called from
 * within interrupt handlers.
 */
MaskInterrupt();
Masks an IRQ line.
Only MaskInterrupt() and UnmaskInterrupt() system calls should be called from
within interrupt handlers.
MaskInterrupt () ; Masks an IRQ line . Only MaskInterrupt () and UnmaskInterrupt () system calls should be called from within interrupt handlers .
int MaskInterruptFromISR(int irq) {
  if (irq < 0 || irq >= NIRQ) {
    return -EINVAL;
  }
  if (irq_mask_cnt[irq] < 0x80000000) {
    irq_mask_cnt[irq]++;
  }
  if (irq_mask_cnt[irq] > 0) {
    DisableIRQ(irq);
  }
  return irq_mask_cnt[irq];
}
int MaskInterruptFromISR ( int irq ) { if ( irq < 0 || irq >= NIRQ ) { return - EINVAL ; } if ( irq_mask_cnt [ irq ] < 0x80000000 ) { irq_mask_cnt [ irq ] ++ ; } if ( irq_mask_cnt [ irq ] > 0 ) { DisableIRQ ( irq ) ; } return irq_mask_cnt [ irq ] ; }
MaskInterrupt();
 Masks an IRQ line.
MaskInterrupt () ; Masks an IRQ line .