Function report |
Source Code:kernel\kexec_core.c |
Create Date:2022-07-28 11:02:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sanity_check_segment_list
Proto:int sanity_check_segment_list(struct kimage *image)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kimage * | image |
151 | nr_segments = nr_segments |
152 | total_pages = 0 |
153 | nr_pages = totalram_pages() |
168 | When i < nr_segments cycle |
173 | If mstart > mend Then Return -EADDRNOTAVAIL |
175 | If mstart & ~PAGE_MASK || mend & ~PAGE_MASK Then Return -EADDRNOTAVAIL |
177 | If mend >= Maximum address we can reach in physical address mode Then Return -EADDRNOTAVAIL |
186 | When i < nr_segments cycle |
208 | When i < nr_segments cycle |
218 | When i < nr_segments cycle |
219 | If PAGE_COUNT(memsz) > nr_pages / 2 Then Return -EINVAL |
222 | total_pages += PAGE_COUNT(memsz) |
225 | If total_pages > nr_pages / 2 Then Return -EINVAL |
238 | If Flags to indicate special processing == KEXEC_TYPE_CRASH Then |
239 | When i < nr_segments cycle |
245 | If mstart < phys_to_boot_phys(start) || mend > phys_to_boot_phys(end) Then Return -EADDRNOTAVAIL |
251 | Return 0 |
Name | Describe |
---|---|
kimage_alloc_init | |
kimage_file_alloc_init |
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 |