~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/kexec.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/kexec.h (Version linux-6.11.5) and /include/uapi/linux/kexec.h (Version linux-5.14.21)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPILINUX_KEXEC_H                          2 #ifndef _UAPILINUX_KEXEC_H
  3 #define _UAPILINUX_KEXEC_H                          3 #define _UAPILINUX_KEXEC_H
  4                                                     4 
  5 /* kexec system call -  It loads the new kerne      5 /* kexec system call -  It loads the new kernel to boot into.
  6  * kexec does not sync, or unmount filesystems      6  * kexec does not sync, or unmount filesystems so if you need
  7  * that to happen you need to do that yourself      7  * that to happen you need to do that yourself.
  8  */                                                 8  */
  9                                                     9 
 10 #include <linux/types.h>                           10 #include <linux/types.h>
 11                                                    11 
 12 /* kexec flags for different usage scenarios *     12 /* kexec flags for different usage scenarios */
 13 #define KEXEC_ON_CRASH          0x00000001         13 #define KEXEC_ON_CRASH          0x00000001
 14 #define KEXEC_PRESERVE_CONTEXT  0x00000002         14 #define KEXEC_PRESERVE_CONTEXT  0x00000002
 15 #define KEXEC_UPDATE_ELFCOREHDR 0x00000004     << 
 16 #define KEXEC_CRASH_HOTPLUG_SUPPORT 0x00000008 << 
 17 #define KEXEC_ARCH_MASK         0xffff0000         15 #define KEXEC_ARCH_MASK         0xffff0000
 18                                                    16 
 19 /*                                                 17 /*
 20  * Kexec file load interface flags.                18  * Kexec file load interface flags.
 21  * KEXEC_FILE_UNLOAD : Unload already loaded k     19  * KEXEC_FILE_UNLOAD : Unload already loaded kexec/kdump image.
 22  * KEXEC_FILE_ON_CRASH : Load/unload operation     20  * KEXEC_FILE_ON_CRASH : Load/unload operation belongs to kdump image.
 23  * KEXEC_FILE_NO_INITRAMFS : No initramfs is b     21  * KEXEC_FILE_NO_INITRAMFS : No initramfs is being loaded. Ignore the initrd
 24  *                           fd field.             22  *                           fd field.
 25  */                                                23  */
 26 #define KEXEC_FILE_UNLOAD       0x00000001         24 #define KEXEC_FILE_UNLOAD       0x00000001
 27 #define KEXEC_FILE_ON_CRASH     0x00000002         25 #define KEXEC_FILE_ON_CRASH     0x00000002
 28 #define KEXEC_FILE_NO_INITRAMFS 0x00000004         26 #define KEXEC_FILE_NO_INITRAMFS 0x00000004
 29 #define KEXEC_FILE_DEBUG        0x00000008     << 
 30                                                    27 
 31 /* These values match the ELF architecture val     28 /* These values match the ELF architecture values.
 32  * Unless there is a good reason that should c     29  * Unless there is a good reason that should continue to be the case.
 33  */                                                30  */
 34 #define KEXEC_ARCH_DEFAULT ( 0 << 16)              31 #define KEXEC_ARCH_DEFAULT ( 0 << 16)
 35 #define KEXEC_ARCH_386     ( 3 << 16)              32 #define KEXEC_ARCH_386     ( 3 << 16)
 36 #define KEXEC_ARCH_68K     ( 4 << 16)              33 #define KEXEC_ARCH_68K     ( 4 << 16)
 37 #define KEXEC_ARCH_PARISC  (15 << 16)              34 #define KEXEC_ARCH_PARISC  (15 << 16)
 38 #define KEXEC_ARCH_X86_64  (62 << 16)              35 #define KEXEC_ARCH_X86_64  (62 << 16)
 39 #define KEXEC_ARCH_PPC     (20 << 16)              36 #define KEXEC_ARCH_PPC     (20 << 16)
 40 #define KEXEC_ARCH_PPC64   (21 << 16)              37 #define KEXEC_ARCH_PPC64   (21 << 16)
 41 #define KEXEC_ARCH_IA_64   (50 << 16)              38 #define KEXEC_ARCH_IA_64   (50 << 16)
 42 #define KEXEC_ARCH_ARM     (40 << 16)              39 #define KEXEC_ARCH_ARM     (40 << 16)
 43 #define KEXEC_ARCH_S390    (22 << 16)              40 #define KEXEC_ARCH_S390    (22 << 16)
 44 #define KEXEC_ARCH_SH      (42 << 16)              41 #define KEXEC_ARCH_SH      (42 << 16)
 45 #define KEXEC_ARCH_MIPS_LE (10 << 16)              42 #define KEXEC_ARCH_MIPS_LE (10 << 16)
 46 #define KEXEC_ARCH_MIPS    ( 8 << 16)              43 #define KEXEC_ARCH_MIPS    ( 8 << 16)
 47 #define KEXEC_ARCH_AARCH64 (183 << 16)             44 #define KEXEC_ARCH_AARCH64 (183 << 16)
 48 #define KEXEC_ARCH_RISCV   (243 << 16)             45 #define KEXEC_ARCH_RISCV   (243 << 16)
 49 #define KEXEC_ARCH_LOONGARCH    (258 << 16)    << 
 50                                                    46 
 51 /* The artificial cap on the number of segment     47 /* The artificial cap on the number of segments passed to kexec_load. */
 52 #define KEXEC_SEGMENT_MAX 16                       48 #define KEXEC_SEGMENT_MAX 16
 53                                                    49 
 54 #ifndef __KERNEL__                                 50 #ifndef __KERNEL__
 55 /*                                                 51 /*
 56  * This structure is used to hold the argument     52  * This structure is used to hold the arguments that are used when
 57  * loading  kernel binaries.                       53  * loading  kernel binaries.
 58  */                                                54  */
 59 struct kexec_segment {                             55 struct kexec_segment {
 60         const void *buf;                           56         const void *buf;
 61         __kernel_size_t bufsz;                 !!  57         size_t bufsz;
 62         const void *mem;                           58         const void *mem;
 63         __kernel_size_t memsz;                 !!  59         size_t memsz;
 64 };                                                 60 };
 65                                                    61 
 66 #endif /* __KERNEL__ */                            62 #endif /* __KERNEL__ */
 67                                                    63 
 68 #endif /* _UAPILINUX_KEXEC_H */                    64 #endif /* _UAPILINUX_KEXEC_H */
 69                                                    65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php