coredump.h 744 Bytes
Newer Older
1
2
3
4
5
6
#ifndef _LINUX_COREDUMP_H
#define _LINUX_COREDUMP_H

#include <linux/types.h>
#include <linux/mm.h>
#include <linux/fs.h>
7
#include <asm/siginfo.h>
8
9
10
11
12

/*
 * These are the only things you should do on a core-file: use only these
 * functions to write out all the necessary info.
 */
Al Viro's avatar
Al Viro committed
13
struct coredump_params;
14
extern int dump_skip(struct coredump_params *cprm, size_t nr);
Al Viro's avatar
Al Viro committed
15
extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
Al Viro's avatar
Al Viro committed
16
extern int dump_align(struct coredump_params *cprm, int align);
17
extern void dump_truncate(struct coredump_params *cprm);
18
#ifdef CONFIG_COREDUMP
Al Viro's avatar
Al Viro committed
19
extern void do_coredump(const siginfo_t *siginfo);
20
#else
Al Viro's avatar
Al Viro committed
21
static inline void do_coredump(const siginfo_t *siginfo) {}
22
#endif
23
24

#endif /* _LINUX_COREDUMP_H */