Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
coredump.h
Go to the documentation of this file.
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 #include <asm/siginfo.h>
8 
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  */
13 extern int dump_write(struct file *file, const void *addr, int nr);
14 extern int dump_seek(struct file *file, loff_t off);
15 #ifdef CONFIG_COREDUMP
16 extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
17 #else
18 static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
19 #endif
20 
21 #endif /* _LINUX_COREDUMP_H */