blob: 42f9752a0a404f900569c1f25a6caef55661cf74 [file] [log] [blame]
Daisuke HATAYAMA088e7af2010-03-05 13:44:06 -08001#ifndef _LINUX_COREDUMP_H
2#define _LINUX_COREDUMP_H
3
4#include <linux/types.h>
5#include <linux/mm.h>
6#include <linux/fs.h>
7
8/*
9 * These are the only things you should do on a core-file: use only these
10 * functions to write out all the necessary info.
11 */
Linus Torvalds3aa0ce82010-10-14 14:32:06 -070012extern int dump_write(struct file *file, const void *addr, int nr);
13extern int dump_seek(struct file *file, loff_t off);
Alex Kelly179899f2012-10-04 17:15:24 -070014#ifdef CONFIG_COREDUMP
15extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
16#else
17static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {}
18#endif
Daisuke HATAYAMA088e7af2010-03-05 13:44:06 -080019
20#endif /* _LINUX_COREDUMP_H */