coredump.h 611 B

123456789101112131415161718192021
  1. #ifndef _LINUX_COREDUMP_H
  2. #define _LINUX_COREDUMP_H
  3. #include <linux/types.h>
  4. #include <linux/mm.h>
  5. #include <linux/fs.h>
  6. #include <asm/siginfo.h>
  7. /*
  8. * These are the only things you should do on a core-file: use only these
  9. * functions to write out all the necessary info.
  10. */
  11. extern int dump_write(struct file *file, const void *addr, int nr);
  12. extern int dump_seek(struct file *file, loff_t off);
  13. #ifdef CONFIG_COREDUMP
  14. extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
  15. #else
  16. static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
  17. #endif
  18. #endif /* _LINUX_COREDUMP_H */