1 #ifndef _SYS_KEXEC_H 2 #define _SYS_KEXEC_H 3 4 #include <sys/cdefs.h> 5 #include <uapi/linux/kexec.h> 6 #include <unistd.h> 7 #include <sys/syscall.h> 8 #include "kexec.h" 9 10 #define KEXEC_SEGMENT_MAX 16 11 12 #define KEXEC_TYPE_DEFAULT 0 13 #define KEXEC_TYPE_CRASH 1 14 15 /* 16 * Prototypes 17 */ 18 19 static inline long kexec_load(unsigned int entry, unsigned long nr_segments, 20 struct kexec_segment *segment, unsigned long flags) { 21 return syscall(__NR_kexec_load, entry, nr_segments, segment, flags); 22 } 23 24 #endif /* _SYS_KEXEC_H */ 25