Re: question on printk() & spin_lock()/spin_unlock(): its proper usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 31, 2008 at 12:53 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
>
>   if (DEBUG_LOCKS_WARN_ON(!irqs_disabled()))
>                 return 0;

Sorry, forgotten to explain the above - which is extracted from
lock_acquire() - showing that irq must be disabled before it comes
here - right?

-- 
Regards,
Peter Teoh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux