kmemcheck: add the kmemcheck core
[linux-2.6.git] / arch / x86 / mm / kmemcheck / shadow.h
1 #ifndef ARCH__X86__MM__KMEMCHECK__SHADOW_H
2 #define ARCH__X86__MM__KMEMCHECK__SHADOW_H
3
4 enum kmemcheck_shadow {
5         KMEMCHECK_SHADOW_UNALLOCATED,
6         KMEMCHECK_SHADOW_UNINITIALIZED,
7         KMEMCHECK_SHADOW_INITIALIZED,
8         KMEMCHECK_SHADOW_FREED,
9 };
10
11 void *kmemcheck_shadow_lookup(unsigned long address);
12
13 enum kmemcheck_shadow kmemcheck_shadow_test(void *shadow, unsigned int size);
14 void kmemcheck_shadow_set(void *shadow, unsigned int size);
15
16 #endif