coredump.h 744 B

12345678910111213141516171819202122232425
  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. struct coredump_params;
  12. extern int dump_skip(struct coredump_params *cprm, size_t nr);
  13. extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
  14. extern int dump_align(struct coredump_params *cprm, int align);
  15. extern void dump_truncate(struct coredump_params *cprm);
  16. #ifdef CONFIG_COREDUMP
  17. extern void do_coredump(const siginfo_t *siginfo);
  18. #else
  19. static inline void do_coredump(const siginfo_t *siginfo) {}
  20. #endif
  21. #endif /* _LINUX_COREDUMP_H */