Function report |
Source Code:kernel\kexec.c |
Create Date:2022-07-28 11:03:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_kexec_load
Proto:static int do_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | entry | |
unsigned long | nr_segments | |
struct kexec_segment __user * | segments | |
unsigned long | flags |
113 | If flags & kexec flags for different usage scenarios Then |
114 | dest_image = kexec_crash_image |
115 | If kexec_crash_image Then arch_kexec_unprotect_crashkres() |
117 | Else |
118 | dest_image = kexec_image |
121 | If nr_segments == 0 Then |
123 | kimage_free(xchg(dest_image, NULL)) |
124 | Return 0 |
126 | If flags & kexec flags for different usage scenarios Then |
132 | kimage_free(xchg( & kexec_crash_image, NULL)) |
135 | ret = kimage_alloc_init( & image, entry, nr_segments, segments, flags) |
139 | If flags & KEXEC_PRESERVE_CONTEXT Then preserve_context = 1 |
142 | ret = A architecture hook called to validate the* proposed image and prepare the control pages* as needed |
150 | ret = kimage_crash_copy_vmcoreinfo(image) |
154 | When i < nr_segments cycle |
160 | kimage_terminate(image) |
163 | image = xchg(dest_image, image) |
165 | out : |
169 | kimage_free(image) |
170 | Return ret |
Name | Describe |
---|---|
SYSCALL_DEFINE4 | |
COMPAT_SYSCALL_DEFINE4 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |