lock_kernel() in kernel thread

From: Armin Schindler (mac@melware.de)
Date: Fri Oct 13 2000 - 02:43:58 EST


I was wondering why it is necessary for the usb_hub_thread() in
drivers/usb/hub.c to have the big kernel lock with lock_kernel() ?

What is it with lock_kernel() anyway ?

extern __inline__ void lock_kernel(void)
#if 1
        if (!++current->lock_depth)
        __asm__ __volatile__(
                "incl %1\n\t"
                "jne 9f"
                :"=m" (__dummy_lock(&kernel_flag)),
                 "=m" (current->lock_depth));

Can someone explain what is behind lock_kernel() and
these changes (#if 1) in 2.4 ?

Is there any documentation for this out there ?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:24 EST