]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/coredump.h
UAPI: Unexport part of linux/ppp-comp.h
[mirror_ubuntu-bionic-kernel.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>
7
8/*
9 * These are the only things you should do on a core-file: use only these
10 * functions to write out all the necessary info.
11 */
3aa0ce82
LT
12extern int dump_write(struct file *file, const void *addr, int nr);
13extern int dump_seek(struct file *file, loff_t off);
179899fd 14#ifdef CONFIG_COREDUMP
5ab1c309 15extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
179899fd 16#else
5ab1c309 17static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
179899fd 18#endif
088e7af7
DH
19
20#endif /* _LINUX_COREDUMP_H */