Daisuke HATAYAMA | 088e7af | 2010-03-05 13:44:06 -0800 | [diff] [blame] | 1 | #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 Torvalds | 3aa0ce8 | 2010-10-14 14:32:06 -0700 | [diff] [blame] | 12 | extern int dump_write(struct file *file, const void *addr, int nr); |
| 13 | extern int dump_seek(struct file *file, loff_t off); |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 14 | #ifdef CONFIG_COREDUMP |
Denys Vlasenko | 5ab1c30 | 2012-10-04 17:15:29 -0700 | [diff] [blame] | 15 | extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs); |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 16 | #else |
Denys Vlasenko | 5ab1c30 | 2012-10-04 17:15:29 -0700 | [diff] [blame] | 17 | static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {} |
Alex Kelly | 179899f | 2012-10-04 17:15:24 -0700 | [diff] [blame] | 18 | #endif |
Daisuke HATAYAMA | 088e7af | 2010-03-05 13:44:06 -0800 | [diff] [blame] | 19 | |
| 20 | #endif /* _LINUX_COREDUMP_H */ |