Merge tag 'dmaengine-fix-4.7-rc4' of git://git.infradead.org/users/vkoul/slave-dma
[linux-2.6-block.git] / include / linux / coredump.h
CommitLineData
088e7af7
DH
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>
1d46e232 7#include <asm/siginfo.h>
088e7af7
DH
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 */
ecc8c772 13struct coredump_params;
9b56d543 14extern int dump_skip(struct coredump_params *cprm, size_t nr);
ecc8c772 15extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
22a8cb82 16extern int dump_align(struct coredump_params *cprm, int align);
179899fd 17#ifdef CONFIG_COREDUMP
ec57941e 18extern void do_coredump(const siginfo_t *siginfo);
179899fd 19#else
ec57941e 20static inline void do_coredump(const siginfo_t *siginfo) {}
179899fd 21#endif
088e7af7
DH
22
23#endif /* _LINUX_COREDUMP_H */