__test_and_clear_bit man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

__TEST_AND_CLEAR_BIT(9)	   Basic C Library Functions   __TEST_AND_CLEAR_BIT(9)

NAME
       __test_and_clear_bit - Clear a bit and return its old value

SYNOPSIS
       int __test_and_clear_bit(int nr, volatile unsigned long * addr);

ARGUMENTS
       nr
	   Bit to clear

       addr
	   Address to count from

DESCRIPTION
       This operation is non-atomic and can be reordered. If two examples of
       this operation race, one can appear to succeed but actually fail. You
       must protect multiple accesses with a lock.

NOTE
       the operation is performed atomically with respect to the local CPU,
       but not other CPUs. Portable code should not rely on this behaviour.
       KVM relies on this behaviour on x86 for modifying memory that is also

ACCESSED FROM A HYPERVISOR ON THE SAME CPU IF RUNNING IN A VM
       donĀ“t change this without also updating arch/x86/kernel/kvm.c

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013	       __TEST_AND_CLEAR_BIT(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net