RTEMS Logo

RTEMS 4.9.2 On-Line Library


Interrupt Manager INTERRUPT_DISABLE - Disable Interrupts

PREV UP NEXT Bookshelf RTEMS C User's Guide

6.4.2: INTERRUPT_DISABLE - Disable Interrupts

CALLING SEQUENCE:

void rtems_interrupt_disable(
  rtems_interrupt_level  level
);

/* this is implemented as a macro and sets level as a side-effect */

DIRECTIVE STATUS CODES:

NONE

DESCRIPTION:

This directive disables all maskable interrupts and returns the previous level. A later invocation of the rtems_interrupt_enable directive should be used to restore the interrupt level.

NOTES:

This directive will not cause the calling task to be preempted.

This directive is implemented as a macro which modifies the level parameter.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation