]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
088e7af7 DH |
2 | #ifndef _LINUX_COREDUMP_H |
3 | #define _LINUX_COREDUMP_H | |
4 | ||
5 | #include <linux/types.h> | |
6 | #include <linux/mm.h> | |
7 | #include <linux/fs.h> | |
1d46e232 | 8 | #include <asm/siginfo.h> |
088e7af7 DH |
9 | |
10 | /* | |
11 | * These are the only things you should do on a core-file: use only these | |
12 | * functions to write out all the necessary info. | |
13 | */ | |
ecc8c772 | 14 | struct coredump_params; |
9b56d543 | 15 | extern int dump_skip(struct coredump_params *cprm, size_t nr); |
ecc8c772 | 16 | extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr); |
22a8cb82 | 17 | extern int dump_align(struct coredump_params *cprm, int align); |
4d22c75d | 18 | extern void dump_truncate(struct coredump_params *cprm); |
179899fd | 19 | #ifdef CONFIG_COREDUMP |
ec57941e | 20 | extern void do_coredump(const siginfo_t *siginfo); |
179899fd | 21 | #else |
ec57941e | 22 | static inline void do_coredump(const siginfo_t *siginfo) {} |
179899fd | 23 | #endif |
088e7af7 DH |
24 | |
25 | #endif /* _LINUX_COREDUMP_H */ |