summaryrefslogtreecommitdiffstats
path: root/kernel/mutex.h
diff options
context:
space:
mode:
authorAkinobu Mita <mita@miraclelinux.com>2006-03-26 01:39:06 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-26 08:57:10 -0800
commit7a8a2429956fcfa3f3ef8fc105a4c055d70239ab (patch)
tree51454e2625678a1ca2ac78ac715d870fd1685375 /kernel/mutex.h
parent67b0ad574b5ee90f8ea58196ff8a7f3780b75365 (diff)
downloadop-kernel-dev-7a8a2429956fcfa3f3ef8fc105a4c055d70239ab.zip
op-kernel-dev-7a8a2429956fcfa3f3ef8fc105a4c055d70239ab.tar.gz
[PATCH] bitops: generic {,test_and_}{set,clear,change}_bit()
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: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/mutex.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud