Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
find.h
Go to the documentation of this file.
1 #ifndef _ASM_GENERIC_BITOPS_FIND_H_
2 #define _ASM_GENERIC_BITOPS_FIND_H_
3 
4 #ifndef find_next_bit
5 
11 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
12  size, unsigned long offset);
13 #endif
14 
15 #ifndef find_next_zero_bit
16 
22 extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
23  long size, unsigned long offset);
24 #endif
25 
26 #ifdef CONFIG_GENERIC_FIND_FIRST_BIT
27 
35 extern unsigned long find_first_bit(const unsigned long *addr,
36  unsigned long size);
37 
45 extern unsigned long find_first_zero_bit(const unsigned long *addr,
46  unsigned long size);
47 #else /* CONFIG_GENERIC_FIND_FIRST_BIT */
48 
49 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
50 #define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0)
51 
52 #endif /* CONFIG_GENERIC_FIND_FIRST_BIT */
53 
54 #endif /*_ASM_GENERIC_BITOPS_FIND_H_ */