ext2-non-atomic.h 724 字节
Newer Older
1 2 3 4
#ifndef _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_
#define _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_

#define ext2_set_bit(nr,addr)	\
5
	__test_and_set_bit_le((nr), (unsigned long *)(addr))
6
#define ext2_clear_bit(nr,addr)	\
7
	__test_and_clear_bit_le((nr), (unsigned long *)(addr))
8 9

#define ext2_test_bit(nr,addr)	\
10
	test_bit_le((nr), (unsigned long *)(addr))
11
#define ext2_find_first_zero_bit(addr, size) \
12
	find_first_zero_bit_le((unsigned long *)(addr), (size))
13
#define ext2_find_next_zero_bit(addr, size, off) \
14
	find_next_zero_bit_le((unsigned long *)(addr), (size), (off))
15
#define ext2_find_next_bit(addr, size, off) \
16
	find_next_bit_le((unsigned long *)(addr), (size), (off))
17 18

#endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */