* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
18 lines
454 B
C
Vendored
18 lines
454 B
C
Vendored
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _VMCORE_H
|
|
#define _VMCORE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define VMCOREDD_NOTE_NAME "LINUX"
|
|
#define VMCOREDD_MAX_NAME_BYTES 44
|
|
|
|
struct vmcoredd_header {
|
|
__u32 n_namesz; /* Name size */
|
|
__u32 n_descsz; /* Content size */
|
|
__u32 n_type; /* NT_VMCOREDD */
|
|
__u8 name[8]; /* LINUX\0\0\0 */
|
|
__u8 dump_name[VMCOREDD_MAX_NAME_BYTES]; /* Device dump's name */
|
|
};
|
|
|
|
#endif /* _VMCORE_H */ |