2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 04:03:58 +08:00
linux-next/include/asm-generic/bitops
Akinobu Mita 930ae745f5 [PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()
This patch introduces the C-language equivalents of the functions below:

int ext2_set_bit(int nr, volatile unsigned long *addr);
int ext2_clear_bit(int nr, volatile unsigned long *addr);
int ext2_test_bit(int nr, const volatile unsigned long *addr);
unsigned long ext2_find_first_zero_bit(const unsigned long *addr,
                                       unsigned long size);
unsinged long ext2_find_next_zero_bit(const unsigned long *addr,
                                      unsigned long size);

In include/asm-generic/bitops/ext2-non-atomic.h

This code largely copied from:

include/asm-powerpc/bitops.h
include/asm-parisc/bitops.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>
2006-03-26 08:57:11 -08:00
..
__ffs.h [PATCH] bitops: generic __ffs() 2006-03-26 08:57:10 -08:00
atomic.h [PATCH] bitops: generic {,test_and_}{set,clear,change}_bit() 2006-03-26 08:57:10 -08:00
ext2-non-atomic.h [PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit() 2006-03-26 08:57:11 -08:00
ffs.h [PATCH] bitops: generic ffs() 2006-03-26 08:57:11 -08:00
ffz.h [PATCH] bitops: generic ffz() 2006-03-26 08:57:10 -08:00
find.h [PATCH] bitops: generic find_{next,first}{,_zero}_bit() 2006-03-26 08:57:11 -08:00
fls64.h [PATCH] fix error: __u32 undeclared 2006-03-26 08:57:11 -08:00
fls.h [PATCH] bitops: generic fls() 2006-03-26 08:57:10 -08:00
hweight.h [PATCH] fix error: __u32 undeclared 2006-03-26 08:57:11 -08:00
le.h [PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit() 2006-03-26 08:57:11 -08:00
non-atomic.h [PATCH] bitops: generic __{,test_and_}{set,clear,change}_bit() and test_bit() 2006-03-26 08:57:10 -08:00
sched.h [PATCH] bitops: generic sched_find_first_bit() 2006-03-26 08:57:11 -08:00