blob: a98f1ca60407d574ee89980bde8029d8f1f73f78 [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>
Richard Weinberger1d46e232012-10-19 13:56:47 -07007#include <asm/siginfo.h>
Daisuke HATAYAMA088e7af2010-03-05 13:44:06 -08008
9/*
10 * These are the only things you should do on a core-file: use only these
11 * functions to write out all the necessary info.
12 */
Linus Torvalds3aa0ce82010-10-14 14:32:06 -070013extern int dump_write(struct file *file, const void *addr, int nr);
14extern int dump_seek(struct file *file, loff_t off);
Alex Kelly179899f2012-10-04 17:15:24 -070015#ifdef CONFIG_COREDUMP
Al Viro541880d2012-11-05 13:11:26 -050016extern void do_coredump(siginfo_t *siginfo);
Alex Kelly179899f2012-10-04 17:15:24 -070017#else
Al Viro541880d2012-11-05 13:11:26 -050018static inline void do_coredump(siginfo_t *siginfo) {}
Alex Kelly179899f2012-10-04 17:15:24 -070019#endif
Daisuke HATAYAMA088e7af2010-03-05 13:44:06 -080020
21#endif /* _LINUX_COREDUMP_H */