disable and enable interrupts when accessing I/O data structures