Menu

[0caea8]: / kexec_tools / kexec.h  Maximize  Restore  History

Download this file

25 lines (18 with data), 515 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _SYS_KEXEC_H
#define _SYS_KEXEC_H
#include <sys/cdefs.h>
#include <linux/kexec.h>
#include <unistd.h>
#include <sys/syscall.h>
#include "kexec.h"
#define KEXEC_SEGMENT_MAX 16
#define KEXEC_TYPE_DEFAULT 0
#define KEXEC_TYPE_CRASH 1
/*
* Prototypes
*/
static inline long kexec_load(unsigned int entry, unsigned long nr_segments,
struct kexec_segment *segment, unsigned long flags) {
return syscall(__NR_kexec_load, entry, nr_segments, segment, flags);
}
#endif /* _SYS_KEXEC_H */
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.