blob: ff0b2f70fbcb9368e7266a94f9a4698c70496595 [file] [log] [blame]
Vegard Nossumdfec0722008-04-04 00:51:41 +02001#ifndef ARCH__X86__MM__KMEMCHECK__SHADOW_H
2#define ARCH__X86__MM__KMEMCHECK__SHADOW_H
3
4enum kmemcheck_shadow {
5 KMEMCHECK_SHADOW_UNALLOCATED,
6 KMEMCHECK_SHADOW_UNINITIALIZED,
7 KMEMCHECK_SHADOW_INITIALIZED,
8 KMEMCHECK_SHADOW_FREED,
9};
10
11void *kmemcheck_shadow_lookup(unsigned long address);
12
13enum kmemcheck_shadow kmemcheck_shadow_test(void *shadow, unsigned int size);
Catalin Marinas81fc0392010-02-08 11:16:24 +000014enum kmemcheck_shadow kmemcheck_shadow_test_all(void *shadow,
15 unsigned int size);
Vegard Nossumdfec0722008-04-04 00:51:41 +020016void kmemcheck_shadow_set(void *shadow, unsigned int size);
17
18#endif