1. 12 6月, 2009 1 次提交
  2. 20 10月, 2007 1 次提交
  3. 09 5月, 2007 1 次提交
  4. 27 3月, 2006 1 次提交
    • A
      [PATCH] bitops: generic {,test_and_}{set,clear,change}_bit() · 7a8a2429
      Akinobu Mita 提交于
      This patch introduces the C-language equivalents of the functions below:
      
      void set_bit(int nr, volatile unsigned long *addr);
      void clear_bit(int nr, volatile unsigned long *addr);
      void change_bit(int nr, volatile unsigned long *addr);
      int test_and_set_bit(int nr, volatile unsigned long *addr);
      int test_and_clear_bit(int nr, volatile unsigned long *addr);
      int test_and_change_bit(int nr, volatile unsigned long *addr);
      
      In include/asm-generic/bitops/atomic.h
      
      This code largely copied from:
      
      include/asm-powerpc/bitops.h
      include/asm-parisc/bitops.h
      include/asm-parisc/atomic.h
      Signed-off-by: NAkinobu Mita <mita@miraclelinux.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7a8a2429