message: add helper struct to disable/enable automatically
  during the construction the interrupts are disabled
  by the destruction the interrupts are reenabled
diff: // http://opensource.org/licenses/MIT>, at your option. This file may not be
  // copied, modified, or distributed except according to those terms.
  +use arch::irq;
  +
  mod doublylinkedlist;
  pub use self::doublylinkedlist::*;
  +
  +pub struct AvoidInterrupts(bool);
  +
  +impl AvoidInterrupts {
  + #[inline]
  + pub fn new() -> Self {
  + Self(irq::nested_disable())
  + }
  +}
  +
  +impl Drop for AvoidInterrupts {
  + #[inline]
  + fn drop(&mut self) {
  + irq::nested_enable(self.0);
  + }
  +}
  \ No newline at end of file
  