Go to the documentation of this file.
13 #ifndef LINUX_RAID_RAID6_H
14 #define LINUX_RAID_RAID6_H
19 #define RAID6_USE_EMPTY_ZERO_PAGE 0
24 #if RAID6_USE_EMPTY_ZERO_PAGE
25 # define raid6_empty_zero_page empty_zero_page
38 #include <sys/types.h>
41 #define BITS_PER_LONG __WORDSIZE
49 # define PAGE_SIZE 4096
55 #define __attribute_const__ __attribute__((const))
56 #define noinline __attribute__((noinline))
58 #define preempt_enable()
59 #define preempt_disable()
60 #define cpu_has_feature(x) 1
61 #define enable_kernel_altivec()
62 #define disable_kernel_altivec()
64 #define EXPORT_SYMBOL(sym)
65 #define EXPORT_SYMBOL_GPL(sym)
66 #define MODULE_LICENSE(licence)
67 #define MODULE_DESCRIPTION(desc)
68 #define subsys_initcall(x)
69 #define module_exit(x)
120 #define RAID6_P_BAD 1
121 #define RAID6_Q_BAD 2
122 #define RAID6_PQ_BAD 3
142 # define jiffies raid6_jiffies()
143 # define printk printf
144 # define GFP_KERNEL 0
145 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
146 PROT_READ|PROT_WRITE, \
147 MAP_PRIVATE|MAP_ANONYMOUS,\
149 # define free_pages(x, y) munmap((void *)(x), PAGE_SIZE << (y))
158 static inline uint32_t raid6_jiffies(
void)