Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753904AbYAQFbr (ORCPT ); Thu, 17 Jan 2008 00:31:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751182AbYAQFbi (ORCPT ); Thu, 17 Jan 2008 00:31:38 -0500 Received: from imsa.nihilent.com ([203.124.131.74]:48819 "EHLO imsa.nihilent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbYAQFbh convert rfc822-to-8bit (ORCPT ); Thu, 17 Jan 2008 00:31:37 -0500 X-Greylist: delayed 1341 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Jan 2008 00:31:37 EST X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Subject: Bitops source problem Date: Thu, 17 Jan 2008 10:39:06 +0530 Message-ID: <1145971D427D7F43B0DBDAE22221C4B5035FDDAC@nipns00a210.FPS.NIHILENT.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 2.6.24-rc8-rt1 Thread-Index: AchYwWhwLulcdn+qRUGOOkQuE9GqHgAA77/g From: "Pravin Nanaware" To: "LKML" X-TM-AS-Product-Ver: IMSS-7.0.0.1191-5.0.0.1023-15672.002 X-TM-AS-Result: No--7.171-7.0-31-1 X-imss-scan-details: No--7.171-7.0-31-1;No--7.171-7.0-31-1 X-TM-AS-User-Approved-Sender: No;No Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1634 Lines: 38 Hi, I was just going through the include file in the /usr/include/asm/bitops.h The function description describes it as non-atomic but it seems it is not. static __inline__ void __change_bit(int nr, volatile void * addr) { __asm__ __volatile__( "btcl %1,%0" :"=m" (ADDR) :"Ir" (nr)); } The kernel version I am using is 2.6.9-42. Is it right or am I missing something ? Thanks, Pravin -**************Nihilent*************** " *** All information contained in this communication is confidential, proprietary, privileged and is intended for the addressees only. If youhave received this E-mail in error please notify mail administrator by telephone on +91-20-39846100 or E-mail the sender by replying to this message, and then delete this E-mail and other copies of it from your computer system. Any unauthorized dissemination,publication, transfer or use of the contents of this communication, with or without modifications is punishable under the relevant law. Nihilent has scanned this mail with current virus checking technologies. However, Nihilent makes no representations or warranties to the effect that this communication is virus-free. Nihilent reserves the right to monitor all E-mail communications through its Corporate Network. *** " *************************************************************************- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/