From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- include/linux/coredump.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/linux/coredump.h (limited to 'include/linux/coredump.h') diff --git a/include/linux/coredump.h b/include/linux/coredump.h new file mode 100644 index 00000000..a98f1ca6 --- /dev/null +++ b/include/linux/coredump.h @@ -0,0 +1,21 @@ +#ifndef _LINUX_COREDUMP_H +#define _LINUX_COREDUMP_H + +#include +#include +#include +#include + +/* + * These are the only things you should do on a core-file: use only these + * functions to write out all the necessary info. + */ +extern int dump_write(struct file *file, const void *addr, int nr); +extern int dump_seek(struct file *file, loff_t off); +#ifdef CONFIG_COREDUMP +extern void do_coredump(siginfo_t *siginfo); +#else +static inline void do_coredump(siginfo_t *siginfo) {} +#endif + +#endif /* _LINUX_COREDUMP_H */ -- cgit v1.3.1