2008-04-04 06:51:41 +08:00
|
|
|
#ifndef ARCH__X86__MM__KMEMCHECK__SHADOW_H
|
|
|
|
#define ARCH__X86__MM__KMEMCHECK__SHADOW_H
|
|
|
|
|
|
|
|
enum kmemcheck_shadow {
|
|
|
|
KMEMCHECK_SHADOW_UNALLOCATED,
|
|
|
|
KMEMCHECK_SHADOW_UNINITIALIZED,
|
|
|
|
KMEMCHECK_SHADOW_INITIALIZED,
|
|
|
|
KMEMCHECK_SHADOW_FREED,
|
|
|
|
};
|
|
|
|
|
|
|
|
void *kmemcheck_shadow_lookup(unsigned long address);
|
|
|
|
|
|
|
|
enum kmemcheck_shadow kmemcheck_shadow_test(void *shadow, unsigned int size);
|
2010-02-08 19:16:24 +08:00
|
|
|
enum kmemcheck_shadow kmemcheck_shadow_test_all(void *shadow,
|
|
|
|
unsigned int size);
|
2008-04-04 06:51:41 +08:00
|
|
|
void kmemcheck_shadow_set(void *shadow, unsigned int size);
|
|
|
|
|
|
|
|
#endif
|