> 2) Is the order of request/release vital?Yes, or you may get deadlocks if you sleep. You need a priority scheme for resource locking (eg IRQ, then DMA, then I/O by numberin ascending order).> 3) What is the recommended way to do a SMP processor lock?You don't need to worry about that unless you are creating kernelthreads yourself.Alan