| |||||
| |||||
![]() |
|||||
|
KEXEC_LOAD
2
4 September 2006
Linux
Linux System Calls
This system call can only be used by root. entry is a pointer to the entry point of newly loaded executable image. This is the memory location where kernel will jump to and start executing instructions of newly loaded image. nr_segments denotes the number of segments which will be passed to kexec_load The value must not be greater than segments kexec_segment elements. A kexec_segment element contains the details of a segment to be loaded in memory. flags Sixteen most significant bits of the flag are used to communicate the architecture information (KEXEC_ARCH_* The values for various architectures are same as defined by ELF specifications. Lower sixteen bits have been reserved for miscellaneous information. Currently only one bit is being used and rest fifteen have been reserved for future use. The least significant bit ( kernel that the memory memory image being loaded is to be executed upon a system crash and not regular boot. For regular boot, this bit is cleared.
and errno is set appropriately.
EINVAL the flags argument contains an invalid combination of flags, or nr_segments is greater than KEXEC_SEGMENT_MAX ENOMEM EBUSY the memory location which should be written to is not available now.
| |||||
|
| |||||