coredump.h 567 字节
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.
 */
13 14
extern int dump_write(struct file *file, const void *addr, int nr);
extern int dump_seek(struct file *file, loff_t off);
15
#ifdef CONFIG_COREDUMP
16
extern void do_coredump(siginfo_t *siginfo);
17
#else
18
static inline void do_coredump(siginfo_t *siginfo) {}
19
#endif
20 21

#endif /* _LINUX_COREDUMP_H */