Function report |
Source Code:kernel\kexec.c |
Create Date:2022-07-28 11:03:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kimage_alloc_init
Proto:static int kimage_alloc_init(struct kimage **rimage, unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kimage ** | rimage | |
| unsigned long | entry | |
| unsigned long | nr_segments | |
| struct kexec_segment __user * | segments | |
| unsigned long | flags |
| 48 | If kexec_on_panic Then |
| 50 | If entry < phys_to_boot_phys(start) || entry > phys_to_boot_phys(end) Then Return -EADDRNOTAVAIL |
| 56 | image = do_kimage_alloc_init() |
| 63 | If ret Then Go to out_free_image |
| 66 | If kexec_on_panic Then |
| 73 | If ret Then Go to out_free_image |
| 84 | If Not control_code_page Then |
| 85 | pr_err("Could not allocate control_code_buffer\n") |
| 86 | Go to out_free_image |
| 89 | If Not kexec_on_panic Then |
| 90 | swap_page = kimage_alloc_control_pages(image, 0) |
| 91 | If Not swap_page Then |
| 92 | pr_err("Could not allocate swap buffer\n") |
| 93 | Go to out_free_control_pages |
| 98 | Return 0 |
| 100 | kimage_free_page_list( & control_pages) |
| 101 | out_free_image : |
| 103 | Return ret |
| Name | Describe |
|---|---|
| do_kexec_load |
| 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 |