Re: set_bit and clear_bit from asm386/bitops.h

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

 



A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I live quotations after my reply?

On Wed, Jul 20, 2005 at 02:39:39PM +0530, ns srinivasa murthy wrote:
> Do you mean to say that when i want to use set_bit() for locking purpose, i 
> have to do it in the following way?
> 
> smp_mb__before_set_bit()
> set_bit()
> smp_mb__after_set_bit()

No, you only have to put it before or after the set/clear_bit(). See
the comments above clear_bit().


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[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