Function report |
Source Code:arch\x86\kernel\machine_kexec_32.c |
Create Date:2022-07-28 08:36:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Do not allocate memory (or fail in any way) in machine_kexec().* We are past the point of no return, committed to rebooting now.
Proto:void machine_kexec(struct kimage *image)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kimage * | image |
| 178 | asmlinkage unsigned long( * relocate_kernel_ptr)(unsigned long indirection_page, unsigned long control_page, unsigned long start_address, unsigned int has_pae, unsigned int preserve_context) |
| 190 | save_ftrace_enabled = Ftrace disable/restore without lock. Some synchronization mechanism* must be used to prevent ftrace_enabled to be changed between* disable/restore. |
| 193 | local_irq_disable() |
| 194 | hw_breakpoint_disable() |
| 196 | If preserve_context Then control_page = page_address(control_code_page) |
| 213 | page_list[PA_CONTROL_PAGE] = __pa(control_page) |
| 214 | page_list[VA_CONTROL_PAGE] = control_page |
| 217 | If Flags to indicate special processing == KEXEC_TYPE_DEFAULT Then page_list[PA_SWAP_PAGE] = page_to_pfn(swap_page) << PAGE_SHIFT determines the page size |
| 231 | load_segments() |
| 240 | start = relocate_kernel_ptr((unsignedlong)head, (unsignedlong)page_list, start, boot_cpu_has(Physical Address Extensions ), preserve_context) |
| Name | Describe |
|---|---|
| kernel_kexec | Move into place and start executing a preloaded standalone* executable. If nothing was preloaded return an error. |
| 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 |