summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/include/linux/kmsg_dump.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/kmsg_dump.h
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/kmsg_dump.h')
-rw-r--r--ANDROID_3.4.5/include/linux/kmsg_dump.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/ANDROID_3.4.5/include/linux/kmsg_dump.h b/ANDROID_3.4.5/include/linux/kmsg_dump.h
deleted file mode 100644
index 35f7237e..00000000
--- a/ANDROID_3.4.5/include/linux/kmsg_dump.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * linux/include/kmsg_dump.h
- *
- * Copyright (C) 2009 Net Insight AB
- *
- * Author: Simon Kagstrom <simon.kagstrom@netinsight.net>
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file COPYING in the main directory of this archive
- * for more details.
- */
-#ifndef _LINUX_KMSG_DUMP_H
-#define _LINUX_KMSG_DUMP_H
-
-#include <linux/errno.h>
-#include <linux/list.h>
-
-/*
- * Keep this list arranged in rough order of priority. Anything listed after
- * KMSG_DUMP_OOPS will not be logged by default unless printk.always_kmsg_dump
- * is passed to the kernel.
- */
-enum kmsg_dump_reason {
- KMSG_DUMP_PANIC,
- KMSG_DUMP_OOPS,
- KMSG_DUMP_EMERG,
- KMSG_DUMP_RESTART,
- KMSG_DUMP_HALT,
- KMSG_DUMP_POWEROFF,
-};
-
-/**
- * struct kmsg_dumper - kernel crash message dumper structure
- * @dump: The callback which gets called on crashes. The buffer is passed
- * as two sections, where s1 (length l1) contains the older
- * messages and s2 (length l2) contains the newer.
- * @list: Entry in the dumper list (private)
- * @registered: Flag that specifies if this is already registered
- */
-struct kmsg_dumper {
- void (*dump)(struct kmsg_dumper *dumper, enum kmsg_dump_reason reason,
- const char *s1, unsigned long l1,
- const char *s2, unsigned long l2);
- struct list_head list;
- int registered;
-};
-
-#ifdef CONFIG_PRINTK
-void kmsg_dump(enum kmsg_dump_reason reason);
-
-int kmsg_dump_register(struct kmsg_dumper *dumper);
-
-int kmsg_dump_unregister(struct kmsg_dumper *dumper);
-#else
-static inline void kmsg_dump(enum kmsg_dump_reason reason)
-{
-}
-
-static inline int kmsg_dump_register(struct kmsg_dumper *dumper)
-{
- return -EINVAL;
-}
-
-static inline int kmsg_dump_unregister(struct kmsg_dumper *dumper)
-{
- return -EINVAL;
-}
-#endif
-
-#endif /* _LINUX_KMSG_DUMP_H */