Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / coredump.h
blob207aed96a5b7dd7dcc7b74df34ec512558738ac5
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_COREDUMP_H
3 #define _LINUX_COREDUMP_H
5 #include <linux/types.h>
6 #include <linux/mm.h>
7 #include <linux/fs.h>
8 #include <asm/siginfo.h>
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.
14 struct coredump_params;
15 extern int dump_skip(struct coredump_params *cprm, size_t nr);
16 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
17 extern int dump_align(struct coredump_params *cprm, int align);
18 extern void dump_truncate(struct coredump_params *cprm);
19 #ifdef CONFIG_COREDUMP
20 extern void do_coredump(const siginfo_t *siginfo);
21 #else
22 static inline void do_coredump(const siginfo_t *siginfo) {}
23 #endif
25 #endif /* _LINUX_COREDUMP_H */