From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h (limited to 'ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h') diff --git a/ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h b/ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h new file mode 100644 index 00000000..ff0b2f70 --- /dev/null +++ b/ANDROID_3.4.5/arch/x86/mm/kmemcheck/shadow.h @@ -0,0 +1,18 @@ +#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); +enum kmemcheck_shadow kmemcheck_shadow_test_all(void *shadow, + unsigned int size); +void kmemcheck_shadow_set(void *shadow, unsigned int size); + +#endif -- cgit