#define LockQueueIoDatabaseLock 10
Define per processor lock queue structure. N.B. The lock field of the spin lock queue structure contains the address of the associated kernel spin lock, an owner bit, and a lock bit. Bit 0 of the spin lock address is the wait bit and bit 1 is the owner bit. The use of this field is such that the bits can be set and cleared noninterlocked, however, the back pointer must be preserved. The lock wait bit is set when a processor enqueues itself on the lock queue and it is not the only entry in the queue. The processor will spin on this bit waiting for the lock to be granted. The owner bit is set when the processor owns the respective lock. The next field of the spin lock queue structure is used to line the queued lock structures together in fifo order. It also can set set and cleared noninterlocked.