device_google_lynx-kernel/kernel-headers/misc/crashinfo.h

34 lines
1.4 KiB
C

/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call into the kernel available to libc. It contains only constants,
*** structures, and macros generated from the original header, and thus,
*** contains no copyrightable information.
***
*** To edit the content of this header, modify the corresponding
*** source file (e.g. under external/kernel-headers/original/) then
*** run bionic/libc/kernel/tools/update_all.py
***
*** Any manual change here will be lost the next time this script will
*** be run. You've been warned!
***
****************************************************************************
****************************************************************************/
#ifndef _MISC_CRASHINFO_H
#define _MISC_CRASHINFO_H
#include <linux/types.h>
#define CRASHINFO_MAGIC "crashnfo"
#define CRASHINFO_MAGIC_SIZE 8
#define CRASHINFO_REASON_SIZE 256
struct crashinfo_img_hdr {
__u8 magic[CRASHINFO_MAGIC_SIZE];
__le32 header_version;
__le32 header_size;
__le32 flags;
__le32 crc;
__le64 coredump_size;
char crashinfo[CRASHINFO_REASON_SIZE];
} __attribute__((packed));
#endif